Skip to content

Result

results.result.Result(index, value=None, error=None, metadata=dict()) dataclass

Bases: Generic[OutputType]

A generic result wrapper holding either a value or an error, plus metadata for ordering, retries, and diagnostics.

error = None class-attribute instance-attribute

Errors that are captured during do().

index instance-attribute

Index to specify the order of batches.

metadata = field(default_factory=dict) class-attribute instance-attribute

Future-proofing metadata.

value = None class-attribute instance-attribute

Computed values returned by do().