MCPcopy Index your code
hub / github.com/Effect-TS/effect / suspended

Method suspended

packages/effect/src/TestClock.ts:320–330  ·  view source on GitHub ↗

* Returns whether all descendants of this fiber are done or suspended.

()

Source from the content-addressed store, hash-verified

318 * Returns whether all descendants of this fiber are done or suspended.
319 */
320 suspended(): Effect.Effect<HashMap.HashMap<FiberId.FiberId, FiberStatus.FiberStatus>, void> {
321 return pipe(
322 this.freeze(),
323 core.zip(pipe(this.yieldTimer, core.zipRight(this.freeze()))),
324 core.flatMap(([first, last]) =>
325 Equal.equals(first, last) ?
326 core.succeed(first) :
327 core.fail(void 0)
328 )
329 )
330 }
331 /**
332 * Polls until all descendants of this fiber are done or suspended.
333 */

Callers 2

awaitSuspendedMethod · 0.95

Calls 4

freezeMethod · 0.95
pipeFunction · 0.70
zipMethod · 0.65
failMethod · 0.65

Tested by

no test coverage detected