MCPcopy Create free account
hub / github.com/microsoft/tslib / adopt

Function adopt

tslib.es6.js:116–116  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

114
115export function __awaiter(thisArg, _arguments, P, generator) {
116 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
117 return new (P || (P = Promise))(function (resolve, reject) {
118 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
119 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }

Callers 1

stepFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…