Бэкенд отмены задачи

This commit is contained in:
2025-02-22 09:28:59 +03:00
parent a887b614c7
commit c71585b100
12 changed files with 141 additions and 36 deletions
+7
View File
@@ -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);
}
}
}