MCPcopy
hub / github.com/anomalyco/opencode / nextUpdate

Function nextUpdate

packages/core/test/filesystem/watcher.test.ts:100–106  ·  view source on GitHub ↗
(check: (event: WatcherEvent) => boolean, trigger: Effect.Effect<void, E>)

Source from the content-addressed store, hash-verified

98}
99
100function nextUpdate<E>(check: (event: WatcherEvent) => boolean, trigger: Effect.Effect<void, E>) {
101 return Effect.gen(function* () {
102 const result = yield* maybeNextUpdate(check, trigger)
103 if (Option.isSome(result)) return result.value
104 return yield* Effect.fail(new Error("timed out waiting for file watcher update"))
105 })
106}
107
108function eventuallyUpdate<E>(check: (event: WatcherEvent) => boolean, trigger: () => Effect.Effect<void, E>) {
109 return Effect.gen(function* () {

Callers 1

watcher.test.tsFile · 0.85

Calls 1

maybeNextUpdateFunction · 0.85

Tested by

no test coverage detected