Closed skrcka closed 1 year ago
Hi @skrcka Thank you for the report. Lots of these little bugs are due to me trying to mix async with sync. I'll have a look on the above what you've suggested, and report back here.
v0.9.2 released, have a look.
Thanks @mvniekerk v0.9.3 did the trick
JobDeleter::remove works fine when called from tokio::main but if I call it in a new thread (tokio::spawn) it gets stuck.
It gets stuck on the first JobDeleter::remove tokio::spawn
Tokio just doesn't want to spawn a new thread or is somehow blocked. I am running everything in multi_thread environment.
I managed to fix it by removing one tokio::spawn and making the function async
Note: this isn't a proper fix, is hacky and isn't properly tested but it works in my case