Function
GSDispatchAsyncMain(_:)GSDispatchAsyncMainGSDispatchAsyncMain
Runs the given block on the main queue synchronously.
Declaration
func GSDispatchAsyncMain(_ body: @escaping () -> Void)Declaration
void GSDispatchAsyncMain(void (^body)());Declaration
GSDispatchAsyncMain(body)Discussion
If the function is called on the main queue, the block is invoked immediately. Otherwise, the block is dispatched asynchronously on the main queue.