mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 09:36:27 +00:00
editor: add tabs for controlling open/active files
This commit is contained in:
@@ -80,6 +80,13 @@ export class AsyncSaga {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Cancel the saga. Useful for testing task cancellation.
|
||||
*/
|
||||
public cancel(): void {
|
||||
this.task.cancel();
|
||||
}
|
||||
|
||||
public async end(): Promise<void> {
|
||||
this.task.cancel();
|
||||
await this.task.toPromise();
|
||||
|
||||
Reference in New Issue
Block a user