I'm converting one of my project from Objective C to swift. I was handling main queue synchronously without deadlock using following code
void runOnMainQueueWithoutDeadlocking(void (^block)(void))
How can I convert this method definition to swift. I'm new to swift, please help
Thanks in advance