public void SetRet(Result result) { if (awaiter != null) { awaiter.SetResult(result); awaiter.IsCompleted = true; Action _Continuation = awaiter.Continuation; awaiter = null; _Continuation?.Invoke(); } }
public void SetRet(ReturnResult result) { if (awaiter != null) { awaiter.SetResult(result); awaiter.IsCompleted = true; Action _Continuation = awaiter.Continuation; awaiter = null; if (_Continuation != null) { _Continuation(); } } }