public IAsyncEnumerator <TResult> GetAsyncEnumerator() { var en = new SwitchMapEnumerator(_source.GetAsyncEnumerator(), _mapper); en.MoveNext(); return(en); }
public IAsyncEnumerator <TResult> GetAsyncEnumerator(CancellationToken cancellationToken) { var en = new SwitchMapEnumerator(_source.GetAsyncEnumerator(cancellationToken), _mapper, cancellationToken); en.MoveNext(); return(en); }
public IAsyncEnumerator <TResult> GetAsyncEnumerator(CancellationToken cancellationToken) { var sourceCTS = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); var en = new SwitchMapEnumerator(_source.GetAsyncEnumerator(sourceCTS.Token), _mapper, sourceCTS); en.MoveNext(); return(en); }
public InnerHandler(IAsyncEnumerator <TResult> source, SwitchMapEnumerator parent) { _source = source; _parent = parent; }
public InnerHandler(IAsyncEnumerator <TResult> source, SwitchMapEnumerator parent, CancellationTokenSource cts) { _source = source; _parent = parent; _cts = cts; }