MCPcopy Index your code
hub / github.com/simstudioai/sim / write

Function write

apps/sim/lib/execution/event-buffer.ts:923–938  ·  view source on GitHub ↗
(event: ExecutionEvent)

Source from the content-addressed store, hash-verified

921 }
922
923 const write = (event: ExecutionEvent): Promise<ExecutionEventEntry> => {
924 if (closed) return Promise.resolve({ eventId: 0, executionId, event })
925 const p = writeQueue.then(() => writeCore(event))
926 writeQueue = p.then(
927 () => {
928 writeFailure = null
929 },
930 (error) => {
931 writeFailure = toError(error)
932 }
933 )
934 inflightWrites.add(p)
935 const remove = () => inflightWrites.delete(p)
936 p.then(remove, remove)
937 return p
938 }
939
940 const writeTerminal = (
941 event: ExecutionEvent,

Callers

nothing calls this directly

Calls 4

toErrorFunction · 0.90
writeCoreFunction · 0.85
resolveMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected