Table of Contents

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

userId string
taskId string
updateAsync Func<CancellationToken, Task>
ct CancellationToken

Returns

Task