public void Run() { try { _result.Succeed(_assets.GetTextSync(_path)); } catch (Throwable t) { _result.Fail(t); } }
public void Run() { try { _result.Succeed(_assets.GetBytesSync(_path)); } catch (System.Exception t) { _result.Fail(t); } }
public void Run() { switch (_mode) { case 0: _promise.Succeed(_value); break; default: _promise.Fail(_cause); break; } }
public override void OnEmit(System.Exception cause) { outerInstance.Fail(cause); }