##// END OF EJS Templates
working on Observable
working on Observable

File last commit:

r13:745612edbd74 propose cancellat...
r14:53e756f117f7 propose cancellat...
Show More
Cancellation.ts
32 lines | 626 B | video/mp2t | TypeScriptLexer
/ src / ts / Cancellation.ts
cin
refactoring, all common interfaces placed to core/interfaces.ts...
r13 import { ICancellation } from "./interfaces";
export class Cancellation implements ICancellation {
isSupported(): boolean {
return false;
}
throwIfRequested(): void {
}
isRequested(): boolean {
return false;
}
register(_cb: (e:any) => void): void {
}
static readonly none : Cancellation = {
isSupported(): boolean {
return false;
},
throwIfRequested(): void {
},
isRequested(): boolean {
return false;
},
register(_cb: (e:any) => void): void {
}
};
}