MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / createDefer

Function createDefer

packages/utils/src/create-defer.ts:7–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5}
6
7export function createDefer<T = any>(): Defer<T> {
8 const r: any = {};
9 const promise = new Promise<T>((resolve, reject) => {
10 r.resolve = resolve;
11 r.reject = reject;
12 });
13
14 r.promise = () => promise;
15
16 return r;
17}

Callers 3

applyUrlMethod · 0.90
loadFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…