Skip to content

Add safe context cancellation, remove unsafe_ #50

Closed as duplicate
Closed as duplicate

Description

@kammce

We shall use solution 2 from #38 (comment). Solution 2 entails creating a cancelation function that accepts a void* to the promise and saving it to the promise base class so it can be called on the top level promise. Context can now call this function from the base promise in order to set its future's to the cancelled state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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