Handling Fiber Interruption and Recovery in Effect Typescript

How do I interrupt a fiber and recover from that interruption?

My real-world use case is that I'm running a process that I allow the user to interrupt with some key presses. But in my code, when I call Fiber.interrupt on that fork, it destroys both the subprocess and the parent process.

https://effect.website/play#62bf91581744
Was this page helpful?