Skip to content

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

@Darksonn

Description

@Darksonn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tokioArea: The main tokio crateC-bugCategory: This is a bug.M-runtimeModule: tokio/runtime

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions