1 | declare type Thread = {};
|
2 | export declare function thread(fn: () => Promise<void>): Promise<void>;
|
3 | export declare function getCurrentThread(): Thread;
|
4 | export declare function threadPause<T>(val: T): T;
|
5 | export declare function threadContinue<T>(thread: Thread, val: T): T;
|
6 | export declare function setDataToCurrentThread(key: symbol, val: unknown): void;
|
7 | export declare function getDataFromCurrentThread<T>(key: symbol): T | undefined;
|
8 | export {};
|
9 | //# sourceMappingURL=Thread.d.ts.map |
\ | No newline at end of file |