Post

Replies

Boosts

Views

Activity

Comment on swift_asyncLet_begin crashed
The crash was reported by users, and I haven’t been able to reproduce it locally so far. Are you suggesting that the issue might be specific to iOS 18.1.1, or is it more likely related to memory management or concurrency?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’25
Comment on HKHealthStore().execute(query) will block main thread
@DTS Engineer document say HealthKit executes queries asynchronously on a background queue. but The method execute(_:) should not block the current thread. code like print("execute begin:(Date().timeIntervalSince1970)") HKHealthStore().execute(query) print("execute end:(Date().timeIntervalSince1970)")
Replies
Boosts
Views
Activity
Feb ’25
Comment on HKHealthStore().execute(query) will block main thread
I know HealthKit executes queries asynchronously on a background queue, it query in back queue, but The method should not block the current thread just code like this,why cost 3.5m? print("execute begin:(Date().timeIntervalSince1970)") HKHealthStore().execute(query) print("execute end:(Date().timeIntervalSince1970)")
Replies
Boosts
Views
Activity
Feb ’25