-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
util: Add TokioContext
future
#2791
util: Add TokioContext
future
#2791
Conversation
Run a future on a custom executor using the tokio runtime. Resolves: tokio-rs#2776
Hi @LucioFranco ! This is still a very WIP
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking like a great start! Left some comments, let me know if you have any questions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting close, a few things we need to clean up first!
@@ -38,4 +38,6 @@ cfg_compat! { | |||
pub mod compat; | |||
} | |||
|
|||
pub mod context; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hawkw do you think we should feature flag this around rt
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Left some comments around docs.
I applied the suggestions, will merge once CI passes, thanks @blasrodri for pushing this through! |
Motivation
Run a future on a custom executor using the tokio runtime.
Resolves: #2776
Solution