def

func:taskCancel

taskCancel(task)

Set cancel flag for the given task. Cancelling a task sets an internal flag which is checked by the context's heartbeat on every Axon call. On the next Axon call the current message context will raise a CancelledErr which will be raised by the respective future. Cancelling a task does not interrupt any current operations, so any blocking future or I/O calls should always use a timeout.

meta

supertypes

feature

Feature namespace of definitions formatted as feature:name

    func

Axon function