mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-23 21:16:52 +01:00
Add AsyncDelayer
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Tgstation.Server.Host.Core
|
||||
{
|
||||
/// <inheritdoc />
|
||||
sealed class AsyncDelayer : IAsyncDelayer
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public Task Delay(TimeSpan timeSpan, CancellationToken cancellationToken) => Task.Delay(timeSpan, cancellationToken);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user