Skip to content

Add free block_on_all in current thread Runtime #477

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

Merged
merged 2 commits into from
Jul 11, 2018

Conversation

jonhoo
Copy link
Contributor

@jonhoo jonhoo commented Jul 11, 2018

Adds a free-standing fn in runtime::current_thread that starts a current_thread::Runtime and blocks on the provided future (and any spawned futures).

Resolves the concerns with #393.

jonhoo added 2 commits July 11, 2018 16:45

Verified

This commit was signed with the committer’s verified signature. The key has expired.
jonhoo Jon Gjengset

Verified

This commit was signed with the committer’s verified signature. The key has expired.
jonhoo Jon Gjengset
@jonhoo jonhoo force-pushed the current_thread_block_on branch from 2d01bd8 to 261811c Compare July 11, 2018 20:46
@carllerche carllerche merged commit 6ba8e76 into tokio-rs:master Jul 11, 2018
@jonhoo jonhoo deleted the current_thread_block_on branch September 19, 2019 17:09
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.

None yet

2 participants