ADLTest.CountdownLatch.Wait C# (CSharp) Method

Wait() public method

public Wait ( int timeout = 2000 ) : bool
timeout int
return bool
        public bool Wait(int timeout = 2000)
        {
            return m_event.WaitOne(timeout);
        }

Usage Example

 public void testInit()
 {
     CountdownLatch latch = new CountdownLatch(1);
     InitListener listener = new InitListener(latch);
     Platform.init(listener);
     latch.Wait();
     Assert.AreEqual(listener.initState, InitStateChangedEvent.InitState.INITIALIZED);
     tearDown();
 }
All Usage Examples Of ADLTest.CountdownLatch::Wait