Potential Bug with `Fiber.join` Affecting Finalizers in Effect Typescript
I think I found a bug but wanted to get a gut check here before I post an issue on GitHub.
https://gist.github.com/jeffijoe/e1155df859f32ad8690b888f608c7fba
It seems that
The use case is I have a pool of items, and whenever an item is returned to the pool, I want to run a cleanup effect, but I dont want to wait for it until the resource is to be used again. I've reduced the issue to the gist above.
https://gist.github.com/jeffijoe/e1155df859f32ad8690b888f608c7fba
It seems that
Fiber.join messes with finalizers somehow, but Fiber.await doesn't. After having joined the fiber, the release finalizer gets run prematurely.The use case is I have a pool of items, and whenever an item is returned to the pool, I want to run a cleanup effect, but I dont want to wait for it until the resource is to be used again. I've reduced the issue to the gist above.
