Skip to content

document task scheduler #3441

Closed
Closed
@jesse99

Description

@jesse99

task.rs is a bit overwhelming and very difficult to understand how to use correctly. I think it would be helpful to document a bit better the theory of operation, the default scheduling mode, and probably even some examples for common tasks (even if its just pointers to suitable unit tests).

For example just how are users supposed to deal with foreign code that blocks? In the simple case I guess SingleThreaded would do the trick. But what about more complex cases? What if I need to call a foreign blocking function, wait for it to respond, and then kick off a bunch of concurrent tasks? Is there a way to spawn that task with SingleThreaded without changing the scheduling of its child tasks?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions