-
Notifications
You must be signed in to change notification settings - Fork 31
Description
Hi and thanks for the library!
I am opening this issue a bit early, as I haven't minimized the problem I have, in the hope maybe someone will be able to give me some pointers. I suspect I am likely using the library incorrectly.
I am setting up a pool with Stdlib.Domain.recommended_domain_count () - 1
, then use it with a call to Domainslib.Task.run
, and outside of run
, end with a call Domainslib.Task.teardown_pool
.
The call to teardown_pool
hangs, with a top -p PID showing 0% cpu. Moreover, when in that state, Ctrl+C
does not terminates the program (kill -9 does).
If I remove the call to teardown_pool
, my program terminates normally, having performed all the expected tasks.
Out of an incorrect hunch, I tried to see if the teardown_pool
needed to be done from inside the run
rather, but this raised failwith "Task.run: tasks are active on pool"
so I suspect this is not the right direction.
I should try and reproduce on a smaller example, but meanwhile, is there some known issue / challenges for beginners in the way to use the lib incorrectly that would cause the teardown to hang?
Thanks for your help!