Skip to content

Variant of cancel token source with cancel-old-token-return-new-token #16

@Strilanc

Description

@Strilanc

One common use case for cancel tokens is "throw away all the old stuff, we have new orders". For example, when a browser browses to a new page it discards the old page.

Would have two methods (perhaps with shorter names): cancelCurrentAndReturnNewToken, currentToken. Perhaps also a cancelCurrentToken method.

Possible names: CancelTokenExchanger, SerialCancelTokenSource, RevolvingCancelTokenSource, ParenticidalCancelTokenSource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions