Package rx.internal.operators
Class OnSubscribeSingle<T>
java.lang.Object
rx.internal.operators.OnSubscribeSingle<T>
- Type Parameters:
T
- the value type
- All Implemented Interfaces:
Action
,Action1<SingleSubscriber<? super T>>
,Function
,Single.OnSubscribe<T>
Allows conversion of an Observable to a Single ensuring that exactly one item is emitted - no more and no less.
Also forwards errors as appropriate.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
call
(SingleSubscriber<? super T> child) static <T> OnSubscribeSingle
<T> create
(Observable<T> observable)