Hardly.Thread.SleepInSeconds C# (CSharp) Method

SleepInSeconds() public static method

public static SleepInSeconds ( int seconds ) : void
seconds int
return void
        public static void SleepInSeconds(int seconds)
        {
            SleepInSeconds((uint)seconds);
        }

Same methods

Thread::SleepInSeconds ( uint seconds ) : void

Usage Example

コード例 #1
0
        public static void WaitTillAllComplete(this Threadable[] threads)
        {
            bool end = false;

            while (!end)
            {
                end = true;
                foreach (Threadable thread in threads)
                {
                    if (thread.isRunning)
                    {
                        end = false;
                        break;
                    }
                }

                if (!end)
                {
                    Thread.SleepInSeconds(3);
                }
            }
        }
All Usage Examples Of Hardly.Thread::SleepInSeconds