public AsyncFilterOp(IAsyncRillConsumable <Event <T> > src, Func <Event <T>, bool> predicate) { _src = src; _predicate = predicate; }
public static IDisposable Subscribe <T>( this IAsyncRillConsumable <T> consumable, AsyncNewEventHandler <T> onNew, AsyncSuccessfulEventHandler?onAllSucceeded = null, AsyncFailedEventHandler?onAnyFailed = null) => consumable.Subscribe(ConsumerFactory.AsynchronousConsumer(onNew, onAllSucceeded, onAnyFailed));
public AsyncCatchOp(IAsyncRillConsumable <T> src, Action <TException> handler) { _src = src; _handler = handler; }
public static IAsyncRillConsumable <TResult> Select <TSource, TResult>(this IAsyncRillConsumable <TSource> consumable, Func <TSource, TResult> map) // where TSource : class // where TResult : class => new AsyncMapOp <TSource, TResult>(consumable, map);
public static IAsyncRillConsumable <Event <T> > Where <T>(this IAsyncRillConsumable <Event <T> > consumable, Func <Event <T>, bool> predicate) where T : class => new AsyncFilterOp <T>(consumable, predicate);
public static IAsyncRillConsumable <Event <TResult> > When <TResult>(this IAsyncRillConsumable <Event> consumable) where TResult : class => new AsyncOfTypeOp <object, TResult>(consumable);
public static IAsyncRillConsumable <Event> CatchAny(this IAsyncRillConsumable <Event> consumable, Action <Exception> handler) => consumable.Catch(handler);
public static IAsyncRillConsumable <Event> Catch <TException>(this IAsyncRillConsumable <Event> consumable, Action <TException> handler) where TException : Exception => new AsyncCatchOp <Event, TException>(consumable, handler);
public AsyncMapOp(IAsyncRillConsumable <TFrom> src, Func <TFrom, TTo> map) { _src = src; _map = map; }
public AsyncOfTypeOp(IAsyncRillConsumable <Event <TSrc> > src) => _src = src;