14 lines
198 B
TypeScript
14 lines
198 B
TypeScript
|
export abstract class CancellableAction {
|
||
|
private cancelled = false;
|
||
|
|
||
|
cancel() {
|
||
|
this.cancelled = true;
|
||
|
}
|
||
|
|
||
|
isCancelled() {
|
||
|
return this.cancelled;
|
||
|
}
|
||
|
|
||
|
abstract getAction(): any;
|
||
|
}
|