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

Be consistent about threaded vs basic scheduler in v0.3 #2698

Closed
Darksonn opened this issue Jul 25, 2020 · 2 comments
Closed

Be consistent about threaded vs basic scheduler in v0.3 #2698

Darksonn opened this issue Jul 25, 2020 · 2 comments
Labels
A-tokio Area: The main tokio crate C-bug Category: This is a bug. M-runtime Module: tokio/runtime
Milestone

Comments

@Darksonn
Copy link
Contributor

Darksonn commented Jul 25, 2020

Currently Runtime::new() and #[tokio::main] will make their choice about the kind of runtime by inspecting the rt-threaded flag. This should be changed in Tokio v0.3, and code uses #[tokio::main] without rt-threaded should probably error with a suggestion to enable the feature or to use the basic scheduler.

We should also overhaul the runtime builder.

@carllerche
Copy link
Member

Superseded by #2698

@benesch
Copy link
Contributor

benesch commented Aug 8, 2020

Superseded by #2698

#2698 is this very issue :D. For posterity, I believe the correct superseding issue is #2720.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate C-bug Category: This is a bug. M-runtime Module: tokio/runtime
Projects
None yet
Development

No branches or pull requests

3 participants