Use the Microsoft.Bcl.Async package from NuGet, it has TaskEx.Delay
.
More Related Contents:
- Why should I prefer single ‘await Task.WhenAll’ over multiple awaits?
- Is it considered acceptable to not call Dispose() on a TPL Task object?
- No ConcurrentList in .Net 4.0?
- Multiple Parallel.ForEach loops in .Net
- Cancelling a pending task synchronously on the UI thread
- How expensive is the lock statement?
- ConfigureAwait pushes the continuation to a pool thread
- How to achieve remove_if functionality in .NET ConcurrentDictionary
- Should thread-safe class have a memory barrier at the end of its constructor?
- Parallel doesnt work with Entity Framework
- The lack of non-capturing Task.Yield forces me to use Task.Run, why follow that?
- How to properly parallelise job heavily relying on I/O
- Wrapping ManualResetEvent as awaitable task
- Wait for QueueUserWorkItem to Complete
- How to cancel Task await after a timeout period
- When to use BlockingCollection and when ConcurrentBag instead of List?
- Attempted to read or write protected memory. This is often an indication that other memory is corrupt
- Starting Tasks In foreach Loop Uses Value of Last Item [duplicate]
- Re-entrant locks in C#
- Synchronously waiting for an async operation, and why does Wait() freeze the program here
- Getting the thread ID from a thread
- What does SynchronizationContext do?
- Is there a way to indefinitely pause a thread?
- Proper way to Dispose of a BackGroundWorker
- Process queue with multithreading or tasks
- Why am I getting this error:”Cross-thread operation not valid: Control lbFolders accessed from a thread other than the thread it was created on.”?
- Can you link to a good example of using BackgroundWorker without placing it on a form as a component?
- Faulted vs Canceled task status after CancellationToken.ThrowIfCancellationRequested
- Async and Await with For Loop [duplicate]
- Run async method 8 times in parallel