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

Function write

packages/platform/node-shared/test/NodeSink.test.ts:31–34  ·  view source on GitHub ↗
(chunk, _encoding, callback)

Source from the content-addressed store, hash-verified

29 const items: Array<string> = []
30 const writable = new Writable({
31 write(chunk, _encoding, callback) {
32 items.push(chunk.toString())
33 callback()
34 }
35 })
36 yield* Effect.addFinalizer(() => Effect.sync(() => writable.destroy()))
37 const fiber = yield* Stream.make("a").pipe(

Callers

nothing calls this directly

Calls 4

pushMethod · 0.65
toStringMethod · 0.65
callbackFunction · 0.50
succeedMethod · 0.45

Tested by

no test coverage detected