MCPcopy Create free account
hub / github.com/vercel/examples / constructor

Method constructor

apps/vibe-coding-platform/lib/deferred.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<T>((resolve, reject) => {
8 this.resolveFn = resolve
9 this.rejectFn = reject
10 })
11 }
12
13 get promise() {
14 return this._promise

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected