thenOptionally

Conditionally chains this pipeline stage with next if it is not null.

  • If next is not null, this behaves like then, chaining the stages together.

  • If next is null, this stage is returned unchanged.