Adding a Finalizer Inside a Worker Handler in Effect Typescript

Is it possible to add a finalizer inside a worker handler? Scoping the WorkerRunner.launch effect doesn't seem to work.
(trying to make this a bit cleaner)
Was this page helpful?