Submit input values with automatic queue management. If a stream is
already active, the run is enqueued (unless the multitask strategy
is "interrupt" or "rollback", in which case the current run is
replaced). Queued runs are drained sequentially via drainQueue.
submit(
values: StateType,
submitOptions: SubmitOptions<StateType, GetConfigurableType<Bag>>
): Promise<void | Promise<void>>| Name | Type | Description |
|---|---|---|
values* | StateType | The state values to send as run input. |
submitOptions | SubmitOptions<StateType, GetConfigurableType<Bag>> | Optional configuration for the run. |