MCPcopy Index your code
hub / github.com/caolan/async / wrapAsync

Function wrapAsync

lib/internal/wrapAsync.js:21–23  ·  view source on GitHub ↗
(asyncFn)

Source from the content-addressed store, hash-verified

19}
20
21function wrapAsync(asyncFn) {
22 return isAsync(asyncFn) ? asyncify(asyncFn) : asyncFn;
23}
24
25export default supportsAsync() ? wrapAsync : identity;
26

Callers 15

reflectFunction · 0.85
eachOfLimitFunction · 0.85
retryFunction · 0.85
eachLimitFunction · 0.85
memoizeFunction · 0.85
eachLimitFunction · 0.85
retryable.jsFile · 0.85
foreverFunction · 0.85
whilstFunction · 0.85
groupByLimit.jsFile · 0.85
timeoutFunction · 0.85
newTaskFunction · 0.85

Calls 2

isAsyncFunction · 0.85
asyncifyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…