We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thread.isMainThread
noasync
swift-corelibs-foundation/Sources/Foundation/Thread.swift
Lines 369 to 370 in c28bf23
Thread.isMainThread is an important debugging tool, it should absolutely be available in noasync contexts.
Sure, the work around is just
extension Thread { static var isThisTheMainThread: Bool { return Thread.isMainThread } }
but we shouldn't need to write this code.
Related to #5139
The text was updated successfully, but these errors were encountered:
phausler
No branches or pull requests
swift-corelibs-foundation/Sources/Foundation/Thread.swift
Lines 369 to 370 in c28bf23
Thread.isMainThread
is an important debugging tool, it should absolutely be available innoasync
contexts.Sure, the work around is just
but we shouldn't need to write this code.
Related to #5139
The text was updated successfully, but these errors were encountered: