Skip to content

Commit bca3f07

Browse files
authored
Update README.md
1 parent 87aab1b commit bca3f07

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ builder.Services.AddTaskProcessor((sp, options) =>
5050
});
5151
builder.Services.AddTaskProcessorExecutor();
5252
```
53+
## Enqueue single task
54+
55+
```csharp
56+
var taskId = await _processor.EnqueueTaskAsync("default", "my-tenant",
57+
_someScopedService.DoSomethingAsync("hello", CancellationToken.None),
58+
delayUntil: DateTimeOffset.UtcNow.AddSeconds(5));
59+
```
5360

5461
## Enqueue batch tasks
5562

0 commit comments

Comments
 (0)