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

Function write

packages/effect/src/unstable/cluster/internal/entityManager.ts:390–395  ·  view source on GitHub ↗
(clientId, message, writeOptions)

Source from the content-addressed store, hash-verified

388 scope,
389 address,
390 write(clientId, message, writeOptions) {
391 if (writeRef.state.current._tag !== "Acquired") {
392 return Effect.flatMap(writeRef.await, (write) => write(clientId, message, writeOptions))
393 }
394 return writeRef.state.current.value(clientId, message, writeOptions)
395 },
396 activeRequests,
397 lastActiveCheck: clock.currentTimeMillisUnsafe(),
398 keepAliveLatch,

Callers 1

makeClientRespondFunction · 0.50

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected