Example #1
0
 public void Run()
 {
     try
     {
         _result.Succeed(_assets.GetTextSync(_path));
     }
     catch (Throwable t)
     {
         _result.Fail(t);
     }
 }
Example #2
0
 public void Run()
 {
     try
     {
         _result.Succeed(_assets.GetBytesSync(_path));
     }
     catch (System.Exception t)
     {
         _result.Fail(t);
     }
 }
Example #3
0
            public void Run()
            {
                switch (_mode)
                {
                case 0:
                    _promise.Succeed(_value);
                    break;

                default:
                    _promise.Fail(_cause);
                    break;
                }
            }
Example #4
0
 public override void OnEmit(T1 result)
 {
     outerInstance.Succeed(result);
 }