Closed bryaan closed 1 year ago
For the first issue, please provide a full MWE of how to produce the error, and include the full error output too.
For the second issue, interleaving Julia tasks and Python coroutines asynchronously is not easy. Simply doing asyncio.run(...)
or whatever just blocks Julia until Python completes the given coroutine. I've never tried but you may be able to create a Python coroutine which simply keeps yielding to the Julia scheduler, then run that asynchronously (in Python) with the other coroutine you want to run.
It sounds more of a hack where perf will suffer. Since this lib doesn't work with threads well its not really worth it to pursue this.
For future updates to PythonCall: would it be possible to somehow use python's libuv with julia's libuv?
OK, I'll close the issue then.
TBH I don't know much about libuv, what it's place is in Julia, and I didn't know Python used it too. If you have any more info/suggestions about this, please open a separate issue, thanks!
PythonCall
I have to use the following function otherwise I get crashes that interestingly enough don't crash the julia program. But it does print a python stacktrace to console.
In addition, if using this in concurrent for loop with @sync and @async it looks like the code runs sequentially.