internal void Wait() { if (cacheTypes == null || cacheTypes.Count != 0) { wait.Wait(); } }
public AwaiterResult <ReturnValue> Wait() { waitHandle.Wait(); return(new AwaiterResult <ReturnValue> { Result = returnValue }); }
public void WaitMember(int memberIndex) { byte[] waitMap = this.waitMap; if (waitMap != null && (waitMap[memberIndex >> 3] & (1 << (int)(memberIndex & 7))) != 0) { wait.Wait(); } }
public valueType Wait() { if (value == null) { wait.Wait(); } return(value); }
/// <summary> /// 释放资源 /// </summary> public void Dispose() { isDisposed = true; if (isWaitFinally) { finallyWait.Wait(); } }
public AwaiterResult <ReturnValue> Wait() { waitHandle.Wait(); return(new AwaiterResult <ReturnValue> { Result = new ReturnValue { Type = returnType } }); }