Thread.isMainThread throwing compiler warnings

This is a daemon programmer thing

Yep. Although it can crop up in other cases, like XPC services and some appexen.

Another weird consequence of this is that you can end up with a process with no threads!

Oh, and just because I shoulda said this earlier, Kyle asked:

What platform did you test this on?

Nothing weird. macOS 15.4 building with Xcode 16.3.

Share and Enjoy

Quinn “The Eskimo!” @ DTS @ Apple

2 Likes