Static methods
staticinlineonMainThread():Bool
Returns:
Whether the calling function is being run on the main thread.
staticinlineonMainThread():BoolReturns:
Whether the calling function is being run on the main thread.