static void AssertIsNotMainThread()

Summary

Throws an exception if called from the main thread. Useful for enforcing that blocking operations don't run on the main thread.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.