onCompleted

fun onCompleted(action: suspend () -> Unit)

Registers a callback for completion.

Parameters

action

Suspending function invoked when the flow completes successfully.