MCPcopy
hub / github.com/fastify/fastify / init

Function init

test/async_hooks.test.js:10–14  ·  test/async_hooks.test.js::init
(asyncId, type, triggerAsyncId, resource)

Source from the content-addressed store, hash-verified

8
9createHook({
10 init (asyncId, type, triggerAsyncId, resource) {
11 if (type === class="st">'content-type-parser:run') {
12 remainingIds.add(asyncId)
13 }
14 },
15 destroy (asyncId) {
16 remainingIds.delete(asyncId)
17 }

Callers

nothing calls this directly

Calls 1

addMethod · 0.80

Tested by

no test coverage detected