CombineSchedulers Documentation

Function advance(by:​)

public func advance(by duration: SchedulerTimeType.Stride = .zero)  

Advances the scheduler by the given stride.

Parameters

duration Scheduler​Time​Type.​Stride

A stride. By default this argument is .zero, which does not advance the scheduler's time but does cause the scheduler to execute any units of work that are waiting to be performed for right now.

@MainActor
    public func advance(by duration: SchedulerTimeType.Stride = .zero) 

Advances the scheduler by the given stride.

Parameters

duration Scheduler​Time​Type.​Stride

A stride. By default this argument is .zero, which does not advance the scheduler's time but does cause the scheduler to execute any units of work that are waiting to be performed for right now.