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

Function start

packages/platform/deno/test/DenoSocket.test.ts:33–40  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

31 let closeWrites = 0
32 const readable = new ReadableStream<Uint8Array>({
33 start(value) {
34 controller = value
35 if (options?.data) value.enqueue(options.data)
36 if (options?.pendingRead !== true) {
37 readableClosed = true
38 value.close()
39 }
40 }
41 })
42 const conn = {
43 readable,

Callers

nothing calls this directly

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected