haha pp
This commit is contained in:
parent
32e01485d8
commit
fa7289365b
1 changed files with 6 additions and 0 deletions
|
|
@ -168,6 +168,12 @@ public static class UniversalExtensions
|
|||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Runs a long non-blocking delay, a work-around for Task.Delay only supporting Int32
|
||||
/// </summary>
|
||||
/// <param name="delay">A timespan of how long the delay should last</param>
|
||||
/// <param name="token">A cancellation token source to cancel the action</param>
|
||||
/// <returns></returns>
|
||||
internal static async Task LongDelay(TimeSpan delay, CancellationTokenSource token)
|
||||
{
|
||||
var st = new Stopwatch();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue