Instance Method

collect(_:)

Collects up to the specified number of elements, and then emits a single array of the collection.

Declaration

func collect(_ count: Int) -> Publishers.CollectByCount<Deferred<DeferredPublisher>>

Parameters

count

The maximum number of received elements to buffer before publishing.

Return Value

A publisher that collects up to the specified number of elements, and then publishes them as an array.