Home > AI > IOS > Combine >

measureInterval(using:options:)

Example (Apple Official)

let cancellable = Timer.publish(every: 1, on: .main, in: .default).autoconnect()
    .measureInterval(using: RunLoop.main)
    .sink { print("\($0)", terminator: "\n") }

Leave a Reply