* Returns whether all descendants of this fiber are done or suspended.
()
| 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 | */ |
no test coverage detected