onComplete

a task finished scope that is attachable to a task instance * task().onComplete {res, e -> // handle task completed } Use this scope to retrieve the end result of a task with a ResultT if succeed or ClientException if failed