toList
Collects the specified number of items size from the Flow into a List.
Return
Parameters
size
The maximum number of items to collect.
Collects the specified number of items size from the Flow into a List within the given duration.
Return
Parameters
size
The maximum number of items to collect.
duration
The maximum duration allowed for collecting items.
Collects the items from the Flow into a List within the given duration.
Return
A List of collected items.
Parameters
duration
The maximum duration allowed for collecting items.