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