Skip to content

Refactor Future into protocol(s) to allow restricting fulfillment #25

Description

@kdubb

Currently Future is an all in one that allows interrogating results and fulfilling the future as well. This disallows restricting fulfillment by consumers.

Refactoring Future into a protocol that only allows interrogation and a sub-protocol, FulfillableFuture, that adds fulfillment capabilities would allow choosing which capabilities to expose to consumers.

The current Future implementation would need to be renamed (e.g. AsyncFuture or StdFuture) and would simply implement both protocols.

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