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

Function write

packages/effect/src/unstable/rpc/Utils.ts:34–38  ·  view source on GitHub ↗
(...args: Array<any>)

Source from the content-addressed store, hash-verified

32 const semaphore = Semaphore.makeUnsafe(1)
33 let buffer: Array<[Array<any>, Context.Context<never>]> = []
34 let write = (...args: Array<any>): Effect.Effect<void> =>
35 Effect.contextWith((context) => {
36 buffer.push([args, context])
37 return Effect.void
38 })
39 return Effect.map(f((...args) => write(...args)), (a) => ({
40 ...a,
41 run(f) {

Callers 3

withRunFunction · 0.70
withRunClientFunction · 0.70
McpServer.tsFile · 0.50

Calls 3

pushMethod · 0.80
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected