onCancel

a cancel scope that is attachable to a task instance * task().onCancel { // Do this on cancel } use this scope to listen on the cancel response of a task