예제 #1
0
 public void Run()
 {
     try
     {
         _result.Succeed(_assets.GetTextSync(_path));
     }
     catch (Throwable t)
     {
         _result.Fail(t);
     }
 }
예제 #2
0
 public void Run()
 {
     try
     {
         _result.Succeed(_assets.GetBytesSync(_path));
     }
     catch (System.Exception t)
     {
         _result.Fail(t);
     }
 }
예제 #3
0
파일: Asyn.cs 프로젝트: zhangxin8105/LGame
            public void Run()
            {
                switch (_mode)
                {
                case 0:
                    _promise.Succeed(_value);
                    break;

                default:
                    _promise.Fail(_cause);
                    break;
                }
            }
예제 #4
0
 public override void OnEmit(System.Exception cause)
 {
     outerInstance.Fail(cause);
 }