MCPcopy Create free account
hub / github.com/Effect-TS/effect / onFinish

Function onFinish

packages/platform/node-shared/src/NodeSink.ts:138–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136 let cancelled = false
137 // Let Node finish auto-destruction before attempting another write.
138 const onFinish = () => dispatcher.scheduleTask(loop, 0)
139 const loop = () => {
140 options.writable.off("drain", loop)
141 options.writable.off("finish", onFinish)

Callers

nothing calls this directly

Calls 1

scheduleTaskMethod · 0.65

Tested by

no test coverage detected