Skip to content

Add consume methods #8

@theangrydev

Description

@theangrydev

Similar to the existing join methods, this one would just take 3 peeks to end a flow by performing some action, with return type void. Probably a 2 peek version that throws the technical failure as a runtime exception too and another consumeOrThrow that throws it as a checked exception. Could also have 1 peek versions for each of the branches that throws a runtime exception if the bias is not present.

The motivation for this is that there is currently no clean way to end a flow in a void.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions