cancel

fun cancel()

Stops collecting the flow.