MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / makePromise

Function makePromise

libraries/p5.js:483–488  ·  view source on GitHub ↗
(promise)

Source from the content-addressed store, hash-verified

481}
482
483function makePromise(promise) {
484 promise[PROMISE_ID] = id++;
485 promise._state = undefined;
486 promise._result = undefined;
487 promise._subscribers = [];
488}
489
490function Enumerator(Constructor, input) {
491 this._instanceConstructor = Constructor;

Callers 2

thenFunction · 0.85
EnumeratorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected