Skip to content

Allow to terminate individual tasks #6

@Baptouuuu

Description

@Baptouuuu

Currently it's only possible to terminate all tasks and it stops the scope from being restarted.

It should be possible to terminate individual tasks and still let the scope be restarted. This would allow to build a multi-race strategy (each task is scheduled multiple times and abort the others of a group when one result is available and still wait for the other groups to finish).

This could be done by wrapping the tasks callables inside a new Tagged object that would hold the callable and a tag value (that could be of any type). And on the continuation a new method would tell the list of tag values to terminate.

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