MCPcopy
hub / github.com/caolan/async / isAsync

Function isAsync

lib/internal/wrapAsync.js:17–19  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

15}
16
17function isAsync(fn) {
18 return supportsSymbol && fn[Symbol.toStringTag] === 'AsyncFunction';
19}
20
21function wrapAsync(asyncFn) {
22 return isAsync(asyncFn) ? asyncify(asyncFn) : asyncFn;

Callers 4

ensureAsyncFunction · 0.90
autoInjectFunction · 0.90
supportsAsyncFunction · 0.85
wrapAsyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…