-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Redesign task API #1788
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
Comments
I have some thoughts on this. I will try to mock up a prototype and see if they make sense before writing them out here. |
I know you do and I was hoping you would help :-D |
So, I had this crazy idea involving For example, a base task API that takes an options struct along with a unique closure:
then we can have a couple of other modules encapsulating common patterns. For example an This isn't so different from what we have now, I guess, just a bit better organized. Is it too simple, or workable? |
Brian and I had a sit-down on this. The end-result was a builder-based API that makes some use of futures. I documented the ideas here:
|
Unsupervise should be an operation parents perform on children, not on themselves. |
It's a bit messy and uncomposable. There are various things we would like to be able to do but can't yet - set min rust stack size, set c stack size, perform operations on schedulers, specify 1:1 thread-to-task scheduling mode, add various hooks to either the spawner or spawnee.
Some unimplemented ideas are in #1721.
See also #595
The text was updated successfully, but these errors were encountered: