Generic Instance Method


Publishes elements only after a specified time interval elapses between events.


func debounce<S>(for dueTime: S.SchedulerTimeType.Stride, scheduler: S, options: S.SchedulerOptions? = nil) -> Publishers.Debounce<Publishers.Share<Upstream>, S> where S : Scheduler



The time the publisher should wait before publishing an element.


The scheduler on which this publisher delivers elements


Scheduler options that customize this publisher’s delivery of elements.

Return Value

A publisher that publishes events only after a specified time elapses.


Use this operator when you want to wait for a pause in the delivery of events from the upstream publisher. For example, call debounce on the publisher from a text field to only receive elements when the user pauses or stops typing. When they start typing again, the debounce holds event delivery until the next pause.

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