Skip to content

Drop-safe futures#109

Merged
jadamcrain merged 3 commits intomainfrom
feature/drop-safe-futures
Jan 12, 2023
Merged

Drop-safe futures#109
jadamcrain merged 3 commits intomainfrom
feature/drop-safe-futures

Conversation

@jadamcrain
Copy link
Member

  1. Future-interfaces are now required to implement an error type. We didn't have a use case anyway for futures with no error.
  2. The raw C interface now gets wrapped in a Promise type that ensures:
    A) The promise can only be completed once
    B) Drop is called with a specified error variant if promise is not completed by user code

@jadamcrain jadamcrain added the enhancement New feature or request label Jan 12, 2023
@jadamcrain jadamcrain merged commit ef3dc64 into main Jan 12, 2023
@jadamcrain jadamcrain deleted the feature/drop-safe-futures branch January 12, 2023 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant