onProgress

fun Flow<TaskState>.onProgress(action: suspend (progress: Float, message: String?) -> Unit): Flow<TaskState>

Invokes action whenever progress is reported via TaskState.Running with non-null progress.