Generic Instance Method


Measures and emits the time interval between events received from an upstream publisher.


func measureInterval<S>(using scheduler: S, options: S.SchedulerOptions? = nil) -> Publishers.MeasureInterval<Publishers.Share<Upstream>, S> where S : Scheduler



The scheduler on which to deliver elements.


Options that customize the delivery of elements.

Return Value

A publisher that emits elements representing the time interval between the elements it receives.


The output type of the returned scheduler is the time interval of the provided scheduler.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software