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.