Skip to content

Can Either add a result consumer method #3191

@zxuanhong

Description

@zxuanhong
  1. Can Either add a result consumer method.
 /**
   * Consume the given result. in either a success (represented by Right) or a failure (represented by Left)
   *
   * @param rightAction the consuming function for the success value
   * @param leftAction the consuming function for the failure value
   */
  void ifRightOrLeftRun(Consumer<R> rightAction, Consumer<L> leftAction);

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