continueWith

open fun <TContinuationResult> continueWith(continuation: Continuation<TResult, TContinuationResult>, executor: Executor): Task<TContinuationResult>

Adds a continuation that will be scheduled using the executor, returning a new task that completes after the continuation has finished running. This allows the continuation to be scheduled on different thread.


Adds a synchronous continuation to this task, returning a new task that completes after the continuation has finished running.