{ } qjs-modules

extendAsyncFunction

Source: lib/extendAsyncFunction.js (pure JS) — default export: extendAsyncFunction

Resolves the (otherwise unnamed) AsyncFunction constructor/prototype and provides an installer hook for extending it.

Exports

ExportArgsKindDescription
extendAsyncFunction(proto=AsyncFunctionPrototype)0–1functionInstalls extensions on the async-function prototype. (default export)
AsyncFunctionExtensions—constThe (currently empty) extension bag.
AsyncFunctionPrototype, AsyncFunction—constThe async-function prototype and its constructor.