ComputationControl

Symbolica documentation for getting started, symbolic expressions, numerical evaluation, pattern matching, and APIs in Python and Rust.

ComputationControl

class ComputationControl

Thread-safe cancellation and progress polling for a running calculation. Cooperative cancellation and queued progress for the active computation. Native hosts may poll from another thread; browser hosts schedule serial stages. At most the 4096 most recent progress events are retained.

Attributes

Name Description
cancelled

cancelled

ComputationControl.cancelled: builtins.bool

Methods

Name Description
__new__
cancel
poll Drain queued progress events

__new__

ComputationControl.__new__() -> ComputationControl

cancel

ComputationControl.cancel() -> None

poll

ComputationControl.poll() -> builtins.list[builtins.str]

Drain queued progress events. Cancellation remains set for this control.