MCPcopy
hub / github.com/Effect-TS/effect / runRaw

Method runRaw

packages/platform-bun/src/internal/httpServer.ts:431–436  ·  view source on GitHub ↗
(data: Uint8Array | string)

Source from the content-addressed store, hash-verified

429 const set = yield* FiberSet.make<any, E>()
430 const run = yield* FiberSet.runtime(set)<R>()
431 function runRaw(data: Uint8Array | string) {
432 const result = handler(data)
433 if (Effect.isEffect(result)) {
434 run(result)
435 }
436 }
437 ws.data.run = runRaw
438 ws.data.buffer.forEach(runRaw)
439 ws.data.buffer.length = 0

Callers 1

toChannelMapFunction · 0.45

Calls 2

handlerFunction · 0.70
runFunction · 0.50

Tested by

no test coverage detected