Detecting and Handling Fiber Shutdown in Effect Typescript

👋 hello. Looking for some advice on detecting an impending shutdown from a Fiber. Reading through the docs I think I can piece together how to achieve it, but just wondering if there's an established Effect-blessed pattern for allowing a parent to notify a child fiber that it needs to wrap up and terminate, and have the child receive that signal so it can stop whatever it's doing and clean up. The parent would also have a set timeout where it force terminates the fiber in case it's stuck for whatever reason.
Was this page helpful?