ComputationControl
Symbolica documentation for getting started, symbolic expressions, numerical evaluation, pattern matching, and APIs in Python and Rust.
ComputationControl
class ComputationControlThread-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.boolMethods
| Name | Description |
|---|---|
__new__ |
|
cancel |
|
poll |
Drain queued progress events |
__new__
ComputationControl.__new__() -> ComputationControlcancel
ComputationControl.cancel() -> Nonepoll
ComputationControl.poll() -> builtins.list[builtins.str]Drain queued progress events. Cancellation remains set for this control.