property
onCancel

<T> onCancel
write-only

Sets the callback which is called when the stream is canceled.

This overrides the previous callback, or clears it if the [onCancelHandler] is null.