first method

Observable<T> first()

Emits the first item of this Observable, or emits an TooFewError otherwise.

Implementation

Observable<T> first() => firstOrElse(throwFunction0(TooFewError()));