Esempio n. 1
0
File: Async.cs Progetto: mavnn/Hopac
        ///
        public void Success(X x)
        {
            var xK = this.xK;

            xK.Value = x;
            Worker.ContinueOnThisThread(sr, xK);
        }
Esempio n. 2
0
        ///
        public void Failure(Exception e)
        {
            this.e = e;
            var sr = this.sr;

            if (null != sr)
            {
                goto Continue;
            }
            if (0 == Interlocked.CompareExchange(ref this.state, 1, 0))
            {
                return;
            }
            sr = this.sr;
Continue:
            Worker.ContinueOnThisThread(sr, this);
        }
Esempio n. 3
0
        ///
        public void Success(X x)
        {
            this.x = x;
            var sr = this.sr;

            if (null != sr)
            {
                goto Continue;
            }
            if (0 == Interlocked.CompareExchange(ref this.state, 1, 0))
            {
                return;
            }
            sr = this.sr;
Continue:
            Worker.ContinueOnThisThread(sr, this);
        }
Esempio n. 4
0
        ///
        public void Failure(Exception e)
        {
            var eK = new FailCont <X>(xK, e);
            var sr = this.sr;

            if (null != sr)
            {
                goto Continue;
            }
            this.xK = eK;
            if (0 == Interlocked.CompareExchange(ref this.state, 1, 0))
            {
                return;
            }
            sr = this.sr;
Continue:
            Worker.ContinueOnThisThread(sr, eK);
        }
Esempio n. 5
0
 internal void Ready()
 {
     Worker.ContinueOnThisThread(sr, this);
 }
Esempio n. 6
0
 public void Ready()
 {
     Worker.ContinueOnThisThread(this.sr, this);
 }
Esempio n. 7
0
File: Async.cs Progetto: mavnn/Hopac
 ///
 public void Failure(Exception e)
 {
     Worker.ContinueOnThisThread(sr, new FailWork(e, xK));
 }
Esempio n. 8
0
File: Async.cs Progetto: mavnn/Hopac
 ///
 public void Success(X x)
 {
     this.x = x;
     Worker.ContinueOnThisThread(sr, this);
 }