コード例 #1
0
        public virtual GoFuture <string> GetText(string path)
        {
            GoPromise <string> result = asyn.DeferredPromise <string>();

            asyn.InvokeAsync(new TextRunnable(result, path, this));
            return(result);
        }
コード例 #2
0
ファイル: Asyn.cs プロジェクト: zhangxin8105/LGame
 public DeferredPromiseRunnable(int m, GoPromise <T> p, T val, System.Exception c)
 {
     this._mode    = m;
     this._promise = p;
     this._value   = val;
     this._cause   = c;
 }
コード例 #3
0
        public GoFuture <sbyte[]> GetBytes(string path)
        {
            GoPromise <sbyte[]> result = asyn.DeferredPromise <sbyte[]>();

            asyn.InvokeAsync(new ByteRunnable(result, path, this));
            return(result);
        }
コード例 #4
0
 internal ByteRunnable(GoPromise <sbyte[]> res, string path, Assets assets)
 {
     this._result = res;
     this._path   = path;
     this._assets = assets;
 }
コード例 #5
0
 internal TextRunnable(GoPromise <string> res, string path, Assets assets)
 {
     this._result = res;
     this._path   = path;
     this._assets = assets;
 }
コード例 #6
0
ファイル: GoPromise.cs プロジェクト: zhangxin8105/LGame
 public FailerImpl(GoPromise <System.Exception> outerInstance)
 {
     this.outerInstance = outerInstance;
 }
コード例 #7
0
ファイル: GoPromise.cs プロジェクト: zhangxin8105/LGame
 public SucceederImpl(GoPromise <T1> outerInstance)
 {
     this.outerInstance = outerInstance;
 }