Configuration options for Future model instances.

Defines the initial state and parameters for Future operations including progress tracking, client data attachment, and namespace configuration.

Remarks

Used to identify additional data that can be set on the model during instantiation. It is expected that implementers will set these properties in the constructor. The value might be overridden by subsequent lifecycle methods or updates.

Example: Basic Future Options

const futureOptions: IFutureModelOptions = {
id: 'calibration-123',
namespace: 'kos',
progress: 0,
clientData: { deviceId: 'pump-S4', targetRate: 1.2 }
};

const future = FutureFactory.instance('my-future')
.options(futureOptions)
.build();
interface IFutureModelOptions<T> {}

Type Parameters

  • T extends {} = Record<string, unknown>