SerialJobExecutor
Namespace: Vercel.AI.Util
public sealed class SerialJobExecutorRuns async jobs one at a time, in submission order.
Inheritance: object
Methods
Section titled “Methods”RunAsync(Func<Task>)
Section titled “RunAsync(Func<Task>)”public Task RunAsync(Func<Task> job)Queues <code class=“paramref”>job</code> and runs it after earlier jobs finish.
Parameters
| Name | Type | Description |
|---|---|---|
job |
Func<Task> |
Returns: Task
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product