Skip to content

Option to block or not block in race_mirai() #556

@wlandau

Description

@wlandau

@shikokuchuo, would you be open to a non-blocking mode for race_mirai(), as well as a timeout for the current blocking mode?

The current blocking mode could REALLY simplify crew by getting rid of all its use of manual condition variables (including CV forwarding with %~>%). But I would need to be able to set a timeout (as in nanonext::until_()) in each race_mirai() call so crew could keep running its worker launch loop.

On the other hand, there are completely different parts of crew that could benefit from a non-blocking version of race_mirai(). A non-blocking race_mirai() would let me ditch my clunky optimization with collections::dict() and just trust the speed of race_mirai() (which is excellent).

c.f. #536.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions