10000 Is it still working ? · Issue #70 · luoxiu/Schedule · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

Is it still working ? #70

Open
stavigor opened this issue Jun 8, 2022 · 2 comments
Open

Is it still working ? #70

stavigor opened this issue Jun 8, 2022 · 2 comments

Comments

@stavigor
Copy link
stavigor commented Jun 8, 2022

The code

let planWorkTimer = Plan.every(.monday, .tuesday, .wednes
95CE
day, .thursday, .friday).at("6:49 am").do {
            print("planWorkTimer is start")
}

not print.

@kkkkkkkkNight
Copy link

me too

@teodorsorescu
Copy link

It won't work if you do not have an available RunLoop (see here).
You either need to specify a queue like:

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

Or have a RunLoop:

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

CFRunLoopRun()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0