This commit is contained in:
手瓜一十雪
2025-01-04 13:03:29 +08:00
parent 574c8c6089
commit a66f5e4971

View File

@@ -1,4 +1,4 @@
type TaskExecutor<T> = (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: (callback: () => void) => void) => void;
export type TaskExecutor<T> = (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: (callback: () => void) => void) => void;
export class CancelableTask<T> {
private promise: Promise<T>;