public void OnEmit(Try <T1> result) { if (result.IsFailure()) { slot.OnEmit(result.GetFailure()); } }
public void OnEmit(Try <T1> result) { if (result.IsSuccess()) { slot.OnEmit(result.Get()); } }
public virtual GoFuture <T> OnFailur(ActViewListener <System.Exception> slot) { Try <T> result = _result.Get(); if (result == null) { _result.Connect(new GoFutureImpl <T>(slot)); } else if (result.IsFailure()) { slot.OnEmit(result.GetFailure()); } return(this); }
public virtual GoFuture <T> OnSuccess(ActViewListener <T> slot) { Try <T> result = _result.Get(); if (result == null) { _result.Connect(new OnSuccessImpl <T>(slot)); } else if (result.IsSuccess()) { slot.OnEmit(result.Get()); } return(this); }
public GoFuture <T> OnComplete(ActViewListener <Try <T> > slot) { Try <T> result = _result.Get(); if (result == null) { _result.Connect(slot); } else { slot.OnEmit(result); } return(this); }
public void OnChange(T1 newValue, T1 oldValue) { listener.OnEmit(newValue); }