Microsoft.Common.Core.Threading.AsyncManualResetEvent.AsyncManualResetEvent C# (CSharp) Method

AsyncManualResetEvent() public method

public AsyncManualResetEvent ( bool isSet = false ) : System.Threading
isSet bool
return System.Threading
        public AsyncManualResetEvent(bool isSet = false) {
            _tcs = new TaskCompletionSource<bool>();
            if (isSet) {
                _tcs.SetResult(true);
            }
        }