MCPcopy Index your code
hub / github.com/tinyplex/tinybase / promiseNew

Function promiseNew

src/common/other.ts:133–138  ·  view source on GitHub ↗
(
  resolver: (
    resolve: (value: Value) => void,
    reject: (reason?: any) => void,
  ) => void,
)

Source from the content-addressed store, hash-verified

131export const getArg = <T>(value: T): T => value;
132
133export const promiseNew = <Value>(
134 resolver: (
135 resolve: (value: Value) => void,
136 reject: (reason?: any) => void,
137 ) => void,
138): Promise<Value> => new promise(resolver);
139
140export const promiseAll = async (promises: Promise<any>[]) =>
141 promise.all(promises);

Callers 5

index.tsFile · 0.90
execObjectStoreFunction · 0.90
forObjectStoresFunction · 0.90
requestFunction · 0.90
index.tsFile · 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…