Handling SIGINT and Finalizers in Effect Typescript
Hi, I have an effect which is monitoring a queue and run some operation when the queue is filled with 10 elements. But I want that this program, if it's interrupted by a SIGINT, should flush the queue and proceed on the elements even if they are < 10.
I thought that it would be easy to do this by defining a scope. I'v put a small program modified from the doc to test if the finalizer is correctly executed when the program is terminated by a SIGINT : https://effect.website/play/#5d8fb3d3f819
It doesn't work. Why ?
I thought that it would be easy to do this by defining a scope. I'v put a small program modified from the doc to test if the finalizer is correctly executed when the program is terminated by a SIGINT : https://effect.website/play/#5d8fb3d3f819
It doesn't work. Why ?
