SingleOperator<T> extension

on

Methods

single() Observable<T>
Emits the single element of this Observable, or emits TooFewError if there was no element, or emits TooManyError if there was more than 1 element.
singleOrDefault({T tooFew, T tooMany}) Observable<T>
Emits the single element of this Observable, or emits tooFew if there was no element, or emits tooMany if there was more than 1 element.
singleOrElse({Map0<T> tooFew, Map0<T> tooMany}) Observable<T>
Emits the single element of this Observable, or evaluates the tooFew callback if there was no element, or evaluates the tooMany callback if there was more than 1 element.