TrueTime.swift icon indicating copy to clipboard operation
TrueTime.swift copied to clipboard

I am blocking the main thread and waiting sync till TrueTime responds. But it blocks forever!

Open filipesaz opened this issue 4 years ago • 1 comments

Hi! I was blocking the main thread and waiting sync for TrueTime response. But it would forever wait!

Upon inspection, I realized that even though TrueTime code appears to be thread-safe, It is issuing some or all of its network calls on CFRunLoopGetMain().

It would seem to me to be better if it did not use the main thread to get its job done. Thanks. Regards.

filipesaz avatar Apr 03 '21 20:04 filipesaz

Did you find any solution for that problem?

galdahan avatar Feb 15 '22 17:02 galdahan