You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 2, 2019. It is now read-only.
while (_running)
{
if (_cancelTokenSource.IsCancellationRequested)
break;
int delay = DoIterate();
await Task.Delay(delay);
}
Task.Delay was used to sleep for some time. But if the threads in thread pool are not enough, it will take 500ms to create a new thread. This may cause tox offline. I recommend to use Thread.sleep instead.