MCPcopy Create free account
hub / github.com/ConsortiumAI/Consortium / constructor

Method constructor

packages/consortium-cli/src/utils/future.ts:6–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4 private _promise: Promise<T>;
5
6 constructor() {
7 this._promise = new Promise((resolve, reject) => {
8 this._resolve = resolve;
9 this._reject = reject;
10 });
11 }
12
13 resolve(value: T) {
14 this._resolve(value);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected