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

Function write

packages/cluster/src/internal/entityManager.ts:402–407  ·  view source on GitHub ↗
(clientId, message)

Source from the content-addressed store, hash-verified

400 scope,
401 address,
402 write(clientId, message) {
403 if (writeRef.state.current._tag !== "Acquired") {
404 return Effect.flatMap(writeRef.await, (write) => write(clientId, message))
405 }
406 return writeRef.state.current.value(clientId, message)
407 },
408 activeRequests,
409 lastActiveCheck: clock.unsafeCurrentTimeMillis(),
410 keepAliveLatch,

Callers 2

respondWithDefectFunction · 0.50
makeClientRespondFunction · 0.50

Calls 1

valueMethod · 0.45

Tested by 1

respondWithDefectFunction · 0.40