此代码不打印任何内容:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool {
QueueScheduler.main.schedule(after: Date() + 1.seconds,
interval: .seconds(1)){
print("test Output")}
return true
}
但如果我不这样做,它interval:
会按预期打印一次。为什么这样?