submit

fun submit(work: () -> Unit)

Cancels the previous work and launches a new coroutine containing the new work.