captureFor

suspend fun <T> Flow<T>.captureFor(duration: Duration): List<T>

Returns a list of flow items captured for duration

Return

a list of flow items captured for duration

Parameters

duration

of capturing