Protocol

SchedulerTimeIntervalConvertible

A protocol that provides a scheduler with an expression for relative time.

Declaration

protocol SchedulerTimeIntervalConvertible

Topics

Converting Seconds to Scheduler Time Intervals

static func microseconds(Int) -> Self

Converts the specified number of microseconds into an instance of this scheduler time type.

Required.

static func milliseconds(Int) -> Self

Converts the specified number of milliseconds into an instance of this scheduler time type.

Required.

static func nanoseconds(Int) -> Self

Converts the specified number of nanoseconds into an instance of this scheduler time type.

Required.

static func seconds(Double) -> Self

Converts the specified number of seconds, as a floating-point value, into an instance of this scheduler time type.

Required.

static func seconds(Int) -> Self

Converts the specified number of seconds into an instance of this scheduler time type.

Required.

See Also

Schedulers

protocol Scheduler

A protocol that defines when and how to execute a closure.

struct ImmediateScheduler

A scheduler for performing synchronous actions.