Skip to content

Add a scheduler type to the task API #3497

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

Closed
brson opened this issue Sep 14, 2012 · 2 comments
Closed

Add a scheduler type to the task API #3497

brson opened this issue Sep 14, 2012 · 2 comments
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@brson
Copy link
Contributor

brson commented Sep 14, 2012

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.

@catamorphism
Copy link
Contributor

Still an issue, as far as I know.

@brson
Copy link
Contributor Author

brson commented Jul 19, 2013

Obsolete in the new scheduler.

@brson brson closed this as completed Jul 19, 2013
bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

2 participants