public static IEnumerable <T> ToEnumerable <T>(this IObservableX <T> source) { return(source.ToObservable().ToEnumerable()); }
public static IObservableX <T> Timeout <T>(this IObservableX <T> source, TimeSpan timeout, IObservableX <T> other) { return(source.Map(_ => _.Timeout(timeout, other.ToObservable()))); }
public static IObservableX <TResult> Map <T, TResult>(this IObservableX <T> source, Func <IObservable <T>, IObservable <TResult> > selector) { return(selector(source.ToObservable()).ToObservableX()); }
public static T FirstOrTimeout <T>(this IObservableX <T> source, TimeSpan timeout) { return(source.ToObservable().Timeout(timeout).First()); }
public static T FirstOrDefault <T>(this IObservableX <T> source) { return(source.ToObservable().FirstOrDefault()); }
public static IDisposable Subscribe <T>(this IObservableX <T> source, Action <T> onNext, Action <Exception> onError, Action onCompleted) { return(source.ToObservable().Subscribe(onNext, onError, onCompleted)); }
public static IDisposable Subscribe <T>(this IObservableX <T> source, Action <T> onNext) { return(source.ToObservable().Subscribe(onNext)); }
public static IObservableX <T> Catch <T>(this IObservableX <T> source, IObservableX <T> second) { return(source.Map(_ => _.Catch(second.ToObservable()))); }