Skip to content

stakker async await #26

Answered by uazu
janjaapbos asked this question in Q&A
Jan 21, 2022 · 3 comments · 6 replies
Discussion options

You must be logged in to vote

This crate is a proof-of-concept for integration between Stakker and Futures, Streams, the async/await ecosystem, etc. As you probably know, a lot of async/await code depends on a particular runtime. There is little I can do about that. However I can try to support async/await code which is designed to work with any runtime. So the benefit of combining spawn_future and ret_to_future (or similar) would mean that some async/await library that worked directly with Futures or Streams could be called from Stakker, and would operate asynchronously alongside Stakker-based code in the same thread. Right now cross-thread waking is not yet implemented, but is in principle not too hard to add.

If yo…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@janjaapbos
Comment options

@uazu
Comment options

uazu Jan 22, 2022
Maintainer

Answer selected by janjaapbos
Comment options

You must be logged in to vote
4 replies
@uazu
Comment options

uazu Feb 15, 2022
Maintainer

@d4h0
Comment options

@uazu
Comment options

uazu Feb 19, 2022
Maintainer

@d4h0
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants