Async-PyO3-Examples
Async-PyO3-Examples copied to clipboard
Using Rust Futures from Python
I'm starting with an explanation of Python futures in Python, so we can expand on it to build a Rust awaitable that drives a Rust future.
Is this making any sense? The fact that the two languages use the same denomination is a good sign for compatibility but makes the whole deal a bit confusing.
This look interesting 👀
Oh oops, I pushed my second commit here as well. I intended to make separate pull requests, but now that it's here... What do you prefer? That I change this PR's title or that I move my second paragraph to a different PR?
All right, so I decided to just leave everything in one big PR.
I think this should be enough to explain the method I found, and to bootstrap any library that would like to implement something like this.
Im happy to merge this if you're happy you got everything you need in it?
Not just yet, I think I should remove the double callback from the examples as it's unneeded complexity.
Have you had the time to read some of it? I know it's a bit long and I don't know if it makes it any clearer.
It's ready.