ToArray
emits a single array of the same type as the type of the elements in the source sequence. The array is emitted when the source sequence completes successfully.
Warning
If the source sequence is infinite (i.e. does not terminate), this operator will never emit the collection, and will keep accumulating all elements from the source sequence indefinitely, with likely impacts on available memory.