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

Tweak the tokio::spawn function #171

Merged
merged 1 commit into from
Mar 2, 2018
Merged

Tweak the tokio::spawn function #171

merged 1 commit into from
Mar 2, 2018

Conversation

carllerche
Copy link
Member

Currently, tokio::spawn matched the spawn function from futures 0.2.
However, this adds additional ergonomic overhead and removes the ability
to spawn from a drop fn. See rust-lang/futures-rs#830.

This patch switches the behavior to access the thread-local variable
referencing the default executor directly in the spawn function.

Currently, `tokio::spawn` matched the `spawn` function from futures 0.2.
However, this adds additional ergonomic overhead and removes the ability
to spawn from a drop fn. See rust-lang/futures-rs#830.

This patch switches the behavior to access the thread-local variable
referencing the default executor directly in the `spawn` function.
@carllerche carllerche merged commit 7db7719 into master Mar 2, 2018
@carllerche carllerche deleted the tweak-spawn branch March 2, 2018 23:50
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.

2 participants