MCPcopy Create free account
hub / github.com/anomalyco/opencode / wake

Function wake

packages/core/src/session/run-coordinator.ts:81–92  ·  view source on GitHub ↗
(key: Key)

Source from the content-addressed store, hash-verified

79 })
80
81 const wake = (key: Key) =>
82 Effect.sync(() => {
83 const entry = active.get(key)
84 if (entry !== undefined) {
85 entry.pendingWake = true
86 return
87 }
88
89 const next = makeEntry()
90 active.set(key, next)
91 start(key, next, false)
92 })
93
94 const interrupt = (key: Key): Effect.Effect<void> =>
95 Effect.suspend(() => {

Callers 3

pushFunction · 0.50
closeFunction · 0.50

Calls 5

makeEntryFunction · 0.85
syncMethod · 0.80
startFunction · 0.70
getMethod · 0.65
setMethod · 0.45

Tested by 2

pushFunction · 0.40
closeFunction · 0.40