static public void assignRequest(Bot bot) { new Thread(() => { while (true) { if (getItem().User != null) { bot.DoRequest(getItem()); break; } Thread.Sleep(5000); } }).Start(); }
public static void assignRequest(Bot bot) { new Thread(() => { while (true) { if (getItem().User!=null) { bot.DoRequest(getItem()); break; } Thread.Sleep(5000); } }).Start(); }