asAsyncTask

fun asAsyncTask(threadName: String = "user selection"): Task

Returns a Task instance that will start this user selection on a thread managed by Threads, where this task will end once the selection is completed.

Ending this task prematurely will also end the user selection.