Conversation
As it turns out it's possible to cancel python threads asynchronously
|
If I'm understanding this right, a new OS thread is created every time Just curious though, I don't know much about this so I'm interested in what your thoughts are! |
|
Yes. I think approach is workable but current implementation deadlocks readily. One have to be very careful about locking: liftIO should release GIL to allow other threads make progress. There's need to distinguish threads spawned by |
This variant of
runPywhich executes python code in separate OS thread. Mostly useful for async in pythonAt the moment I'm not quite sure that API is right but it works with example in #40
Fixes #40