Main Content

cancel

R2026b

Stop function running on MATLAB Production Server in the background

Since R2026b

    Syntax

    Description

    cancel(F) stops each queued or running element of the prodserver.addon.FevalFuture array or scalar F.

    For each element of F that does not have the State property 'Ready', cancel sets the State property to 'Cancelled'. All canceled FevalFuture elements record their cancellation in the Error property.

    Input Arguments

    collapse all

    Scheduled function to cancel, specified as an FevalFuture array or scalar.

    Version History

    Introduced in R2026b

    See Also

    |