toSet

Reads the entirety of this iterable into a Set.

Since sets are in-memory, this method loads the entirety of the results into memory.

See also

Execute an action for each result.

Store all results in a List.

Stream all results in a Flow.