Wait() public static method

public static Wait ( ) : void
return void
        public void Wait()
        {
            if (m_state != MicroThreadState.Running)
            {
                throw new Exception(String.Format("Illegal thread state in Wait(): {0}", m_state));
            }

#if EXTRA_CHECKS
            if (CurrentThread != this)
            {
                throw new Exception("Trying to yield a non-current thread");
            }
#endif

            Scheduler.Wait();
        }