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

Function resume

packages/platform/cloudflare/src/internal/workflowRuntime.ts:335–340  ·  view source on GitHub ↗
(mode: WorkflowStorage.WakeMode = "explicit")

Source from the content-addressed store, hash-verified

333 }
334
335 const resume = (mode: WorkflowStorage.WakeMode = "explicit"): Promise<void> => {
336 if (!requestWake(mode)) return Promise.resolve()
337 // Persist and guard the resume before acknowledging it, so an abort after
338 // the RPC returns is still recovered.
339 return syncAlarm().then(startPending)
340 }
341
342 const completeDeferred = (
343 deferredName: string,

Callers 15

completeDeferredFunction · 0.70
completeOwnDeferredFunction · 0.70
runAlarmFunction · 0.70
makeWorkflowRuntimeFunction · 0.70
idbRequestFunction · 0.50
deleteDatabaseFunction · 0.50
startBlockedDeleteFunction · 0.50
onChangeFunction · 0.50
textFunction · 0.50
onReadyStateChangeFunction · 0.50

Calls 3

requestWakeFunction · 0.85
syncAlarmFunction · 0.85
resolveMethod · 0.80

Tested by 15

idbRequestFunction · 0.40
deleteDatabaseFunction · 0.40
startBlockedDeleteFunction · 0.40
liveSleepFunction · 0.40
assertOpenResultFunction · 0.40
runOpenSelectFunction · 0.40
openWebSocketFunction · 0.40
connectWebSocketFunction · 0.40
assertOpenResultFunction · 0.40
readWebSocketCloseFunction · 0.40
readWebSocketFramesFunction · 0.40
onAbortFunction · 0.40