Method RunForTaskAsync
- Namespace
- Oscova.Agents.Persistence
- Assembly
- Oscova.Agents.dll
RunForTaskAsync(string, string, Func<CancellationToken, Task>, CancellationToken)
Runs an update while excluding concurrent updates for the same task.
public Task RunForTaskAsync(string userId, string taskId, Func<CancellationToken, Task> updateAsync, CancellationToken ct = default)Parameters
userIdstringtaskIdstringupdateAsyncFunc<CancellationToken, Task>ctCancellationToken