c119c44c13
When this is merged https://gitlab.com/ligolang/ligo-web-ide/ will be marked as deprecated. This MR does not hook up the webide build to the main CI. The CI integration will come in a subsequent MR for the sake of making review easier.
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;
|
|
}
|