##// END OF EJS Templates
core/safe ported to typescript
core/safe ported to typescript

File last commit:

r13:745612edbd74 propose cancellat...
r16:638c2fe34531 propose cancellat...
Show More
Cancellation.ts
32 lines | 626 B | video/mp2t | TypeScriptLexer
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 {
}
};
}