Skip to content

TypeScript API / contentia/core / RunOptions

Interface: RunOptions ​

Options for running a task or stream as a Promise: task.run(options) and stream.collect(options).

Properties ​

onProgress? ​

ts
readonly onProgress?: (metadata) => void;

Called for every progress event and recoverable warning as the task or stream runs. Without it, both are dropped; the task or stream still resolves normally.

Parameters ​

ParameterType
metadataContentiaMetadata

Returns ​

void