GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — lowcode-engine/packages/utils/src/create-defer.ts at main · weiplanet/lowcode-engine Expand file tree/ Copy pathcreate-defer.tsMore file actions 17 lines (14 loc) · 364 Bytes / Copy pathcreate-defer.tsFile metadata and controls17 lines (14 loc) · 364 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 export interface Defer<T = any> { resolve(value?: T | PromiseLike<T>): void; reject(reason?: any): void; promise(): Promise<T>; } export function createDefer<T = any>(): Defer<T> { const r: any = {}; const promise = new Promise<T>((resolve, reject) => { r.resolve = resolve; r.reject = reject; }); r.promise = () => promise; return r; } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |