Async-PyO3-Examples icon indicating copy to clipboard operation
Async-PyO3-Examples copied to clipboard

Using Rust Futures from Python

Open ThibaultLemaire opened this issue 4 years ago • 6 comments

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.

ThibaultLemaire avatar Jan 26 '21 21:01 ThibaultLemaire

This look interesting 👀

ChillFish8 avatar Feb 05 '21 21:02 ChillFish8

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?

ThibaultLemaire avatar Feb 05 '21 22:02 ThibaultLemaire

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.

ThibaultLemaire avatar Feb 14 '21 16:02 ThibaultLemaire

Im happy to merge this if you're happy you got everything you need in it?

ChillFish8 avatar Feb 22 '21 21:02 ChillFish8

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.

ThibaultLemaire avatar Feb 22 '21 22:02 ThibaultLemaire

It's ready.

ThibaultLemaire avatar Feb 25 '21 00:02 ThibaultLemaire