Declaration

func GSDispatchSyncMain(_ body: @escaping () -> Void)

Declaration

void GSDispatchSyncMain(void (^body)());

Declaration

GSDispatchSyncMain(body)

Discussion

If the function is called on the main queue, the block is invoked immediately. Otherwise, the block is dispatched synchronously on the main queue.