schedule
Swift declarationfunc schedule(_ action: @escaping () -> Void)Performs the action at the next possible opportunity, without options.
protocol · iOS 13.0+ · SDK 27.1
protocol Scheduler<SchedulerTimeType>A protocol that defines when and how to execute a closure. You can use a scheduler to execute code as soon as possible, or after a future date. Individual scheduler implementations use whatever time-keeping system makes sense for them. Schedulers express this as their `SchedulerTimeType`. Since this type conforms to ``SchedulerTimeIntervalConvertible``, you can always express these times with the convenience functions like `.milliseconds(500)`. Schedulers can accept options to control how they execute the actions passed to them. These options may control factors like which threads or dispatch queues execute the actions.
func schedule(_ action: @escaping () -> Void)Performs the action at the next possible opportunity, without options.
4 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
Scheduler.schedule(after:_:)
The iOS SDK compiler rejected this binding: cannot access associated type 'SchedulerTimeType' from 'Scheduler'; use a concrete type or generic parameter base instead
Scheduler.schedule(after:tolerance:_:)
The iOS SDK compiler rejected this binding: cannot access associated type 'SchedulerTimeType' from 'Scheduler'; use a concrete type or generic parameter base instead
Scheduler.schedule(after:interval:tolerance:_:)
The iOS SDK compiler rejected this binding: cannot access associated type 'SchedulerTimeType' from 'Scheduler'; use a concrete type or generic parameter base instead
Scheduler.schedule(after:interval:_:)
The iOS SDK compiler rejected this binding: cannot access associated type 'SchedulerTimeType' from 'Scheduler'; use a concrete type or generic parameter base instead