Skip to content

JoinWithUnitOps

extension JoinWithUnitOps on IOFiber<Unit>

Convenience extension for IOFiber<Unit> that provides a joinWithUnit method, avoiding the need to supply a fallback IO for the common Unit-typed fiber case.

Methods

joinWithUnit() extension

IO<Unit> joinWithUnit()

Waits for this unit-typed fiber to complete, returning IO.unit if canceled.

Available on IOFiber<A>, provided by the JoinWithUnitOps extension

Implementation
dart
IO<Unit> joinWithUnit() => joinWith(IO.unit);