firstOrElse method

Observable<T> firstOrElse(
  1. Map0<T> callback
)

Emits the first item of this Observable, or evaluate the provided callback otherwise.

Implementation

Observable<T> firstOrElse(Map0<T> callback) =>
    findFirstOrElse(constantFunction1(true), callback);