cancel

fun cancel(message: String, throwable: ClientException? = null)

cancels the current task's scope and invokes a cancelTask.