public static void SleepInSeconds(int seconds) { SleepInSeconds((uint)seconds); }
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); } } }