Classes
- Publishers.Timer
-
A publisher that emits a scheduler's current time on a repeating interval.
Structures
- AnyScheduler
-
A type-erasing wrapper for the
Scheduler
protocol, which can be useful for being generic over many types of schedulers without needing to actually introduce a generic to your code. - ImmediateScheduler
-
A scheduler for performing synchronous actions.
- UIScheduler
-
A scheduler that executes its work on the main queue as soon as possible.
- UnimplementedScheduler
-
A scheduler that causes the current XCTest test case to fail if it is used.
Typealiases
- AnySchedulerOf
-
A convenience type to specify an
AnyScheduler
by the scheduler it wraps rather than by the time type and options type. - ImmediateSchedulerOf
-
A convenience type to specify an
ImmediateScheduler
by the scheduler it wraps rather than by the time type and options type. - FailingScheduler
- FailingSchedulerOf
- TestSchedulerOf
-
A convenience type to specify a
TestScheduler
by the scheduler it wraps rather than by the time type and options type. - UnimplementedSchedulerOf
-
A convenience type to specify an
UnimplementedScheduler
by the scheduler it wraps rather than by the time type and options type.
Functions
- sleep(for:tolerance:options:)
-
Suspends the current task for at least the given duration.
- sleep(until:tolerance:options:)
-
Suspend task execution until a given deadline within a tolerance.
- timer(interval:tolerance:options:)
-
Returns a stream that repeatedly yields the current time of the scheduler on a given interval.
- measure(_:)
-
Measure the elapsed time to execute a closure.
- advance(by:)
-
Advances the scheduler by the given stride.
- advance(by:)
-
Advances the scheduler by the given stride.
- advance(to:)
-
Advances the scheduler to the given instant.
- advance(to:)
-
Advances the scheduler to the given instant.
- run()
-
Runs the scheduler until it has no scheduled items left.
- run()
- schedule(after:interval:tolerance:options:_:)
- schedule(after:tolerance:options:_:)
- schedule(options:_:)
Variables
- minimumTolerance
- now