Бэкенд отмены задачи
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Example.Shared;
|
||||
using mROA.Implementation.Attributes;
|
||||
|
||||
@@ -26,5 +28,10 @@ namespace Example.Backend
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public async Task AsyncTest(CancellationToken token)
|
||||
{
|
||||
await Task.Delay(TimeSpan.FromSeconds(5), token);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user