Skip to content

Allow pausing a nursery #72

@lordmauve

Description

@lordmauve

There are situations when it would be helpful to pause an entire nursery.

This would be more powerful than pausing a clock because pausing a clock still allows tasks to resume for input events or concurrency primitives.

For example, a pause screen needs to pause the entire game, including controls like the fire button.

Pausing a nursery would entail pausing all tasks within it, the task inside the nursery context, and any nurseries linked to those tasks, recursively. Paused means that if the task is resumed it will not actually be run until unpaused.

Pausing will need to be scoped so that if two of the containing nurseries for a task are paused the task will not run until both nurseries are unpaused (not either).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions