/// public void Success(X x) { var xK = this.xK; xK.Value = x; Worker.ContinueOnThisThread(sr, xK); }
/// 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); }
/// 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); }
/// 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); }
internal void Ready() { Worker.ContinueOnThisThread(sr, this); }
public void Ready() { Worker.ContinueOnThisThread(this.sr, this); }
/// public void Failure(Exception e) { Worker.ContinueOnThisThread(sr, new FailWork(e, xK)); }
/// public void Success(X x) { this.x = x; Worker.ContinueOnThisThread(sr, this); }