CoalescingTaskRunnerWithResult

constructor(context: <Error class: unknown class> = Dispatchers.Default, task: suspend () -> T)

Parameters

context

Coroutine context to run the task (defaults to Dispatchers.Default).

task

The suspending function to execute. Only one instance runs at a time.

T

The result type of the task.