Esempio n. 1
0
        public static IUniTaskAsyncEnumerable <TSource> Do <TSource>(this IUniTaskAsyncEnumerable <TSource> source, IObserver <TSource> observer)
        {
            Error.ThrowArgumentNullException(source, nameof(source));
            Error.ThrowArgumentNullException(observer, nameof(observer));

            return(source.Do(observer.OnNext, observer.OnError, observer.OnCompleted)); // alloc delegate.
        }
Esempio n. 2
0
 public static IUniTaskAsyncEnumerable <TSource> Do <TSource>(this IUniTaskAsyncEnumerable <TSource> source,
                                                              Action <TSource> onNext)
 {
     Error.ThrowArgumentNullException(source, nameof(source));
     return(source.Do(onNext, null, null));
 }