Skip to content

Add a scheduler type to the task API #3497

Closed
@brson

Description

@brson

I've resisted having first class schedulers in the task API, but sometimes you do want to spawn functions onto schedulers that you aren't running on.

impl Scheduler {
  fn task() -> TaskBuilder;
}

Add a way to get the current scheduler. Add a way to create new schedulers. Remove the code from task builder that deals with schedulers - if you want a scheduler you make one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions