Coalescing Task Runner
constructor(context: <Error class: unknown class> = Dispatchers.Default, errorHandler: (Throwable) -> Unit = {}, task: suspend () -> Unit)
Parameters
context
Coroutine context to run the task (defaults to Dispatchers.Default).
error Handler
Optional callback for handling exceptions thrown by the task.
task
The suspending function to execute. Only one instance runs at a time.