Skip to content
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

Reexport TaskExecutor from tokio_current_thread #652

Merged
merged 1 commit into from
Sep 19, 2018

Conversation

polachok
Copy link
Contributor

Motivation

It seems like there's no way to spawn !Send futures from inside a future spawned on current_thread::runtime.

Solution

Reexport TaskExecutor from tokio_current_thread.

@hawkw
Copy link
Member

hawkw commented Sep 19, 2018

Based on personal experience with the new API, I strongly agree that this would be useful. Would like to get @carllerche's opinion on it.

@carllerche carllerche merged commit e267a19 into tokio-rs:master Sep 19, 2018
@carllerche
Copy link
Member

Thanks 👍

@polachok polachok deleted the export-current-thread-executor branch September 19, 2018 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants