onTimedOut

fun Flow<TaskState>.onTimedOut(action: suspend (TaskState.TimedOut) -> Unit): Flow<TaskState>

Invokes action when the task is stopped due to timeout.