Schedule icon indicating copy to clipboard operation
Schedule copied to clipboard

Schedule timing task in Swift using a fluent API. (A friendly alternative to Timer)

Results 9 Schedule issues
Sort by recently updated
recently updated
newest added

`let t1 = Plan.after(1.second).do { print("1 second passed") }` 设定固定时间之后 并没用打印 还需要配置什么?

The code ``` let planWorkTimer = Plan.every(.monday, .tuesday, .wednesday, .thursday, .friday).at("6:49 am").do { print("planWorkTimer is start") } ``` not print.

这个库目前还维护吗,考虑到一些后续情况...

场景: executeNow() resume() 有时候是正常的,有时候只会执行一次任务, 显然是 executeNow执行的任务, 出现概率 百分 50左右。 定时器的时间为 : 3秒

double is not enough for nanosecond in armv7 devices.

I have a task: ``` let task = Plan.every(5.seconds).do(action: startSome) ``` When I suspend() it somewhere and then resume for 10 seconds, I have 2 immediate calls of startSome. But...

I am using the task as shown below and used as a property to singleton class. ``` schedulerTask = Plan.every(0.5).do(queue: .global()) { doSomething() } ``` Which is resulting in this...

I tried the Schedule package for swift on a mac application. The following code didn't print out anything: ``` _ = Plan.every(1.seconds).do(mode: .default) { print("Ping!") } Plan.every(1.second).do(queue: .global()) { print("On...