Доступные, но недоступные функции в OperationQueue в Swift
MacOS Swift Project, но для iOS. Я нацелен на 10,14
У меня OperationQueue. Я хочу запланировать выполнение операции позже. Достаточно просто...
func schedule(after date: OperationQueue.SchedulerTimeType, interval: OperationQueue.SchedulerTimeType.Stride, tolerance: OperationQueue.SchedulerTimeType.Stride, options: OperationQueue.SchedulerOptions?, _ action: @escaping () -> Void) -> Cancellable
Доступно 10.9
operQ.schedule(after: .init(restartDate), interval: .zero, tolerance: .zero, options: nil){self.restart("")}
Я получаю ошибку 'schedule(after:interval:tolerance:options:_:)' is only available in macOS 10.15 or newer
Которые я отследил, чтобы объединить, что, кажется, маскирует реализацию по умолчанию.