Debugging Stuck Fiber Interruption in Large Effect Codebase

Hello, I am having an issue with fiber interruption. What could cause a Fiber.interrupt call to get stuck? I am working on a large Effect codebase and seem unable to identify the issue:

it("stuck fiber interruption", async () => {
    const exit = await Effect.runPromiseExit(Effect.gen(function*(_){

        yield* Effect.log("start")
        const fiber = yield* _(
            BackgroundStuff,
            Effect.fork
        )
        yield* Effect.log("preinterrupt")
        yield* Fiber.interrupt(fiber)
        yield* Effect.log("postinterrupt") // never reached
    }))
    console.log(exit) // never reached
})
Was this page helpful?