public override void OnNext(IOrderedItem <T> t) { if (done) { return; } R v; try { v = mapper(t.Value); } catch (Exception ex) { Fail(ex); return; } actual.OnNext(t.Replace(v)); }
public override bool TryOnNext(IOrderedItem <T> t) { if (done) { return(false); } R v; try { v = mapper(t.Value); } catch (Exception ex) { Fail(ex); return(false); } return(actual.TryOnNext(t.Replace(v))); }