public static IAsyncObservable <bool> Contains <TSource>(this IAsyncObservable <TSource> source, TSource element) { if (source == null) { throw new ArgumentNullException(nameof(source)); } return(Create <bool>(observer => source.SubscribeSafeAsync(AsyncObserver.Contains(observer, element)))); }