Fix runner cancel completion (#27115)
This commit is contained in:
parent
3974520742
commit
822eec0d62
1 changed files with 23 additions and 18 deletions
|
|
@ -181,7 +181,7 @@ export const make = <A, E = never>(
|
|||
return [
|
||||
Effect.gen(function* () {
|
||||
yield* Fiber.interrupt(st.run.fiber)
|
||||
yield* Deferred.await(st.run.done).pipe(Effect.exit, Effect.asVoid)
|
||||
yield* Deferred.fail(st.run.done, new Cancelled()).pipe(Effect.asVoid)
|
||||
yield* idleIfCurrent()
|
||||
}),
|
||||
{ _tag: "Idle" } as const,
|
||||
|
|
|
|||
Loading…
Reference in a new issue