Here we are, back to talk about GCD, let start by discussing the Terms ‘Synchronous’ and ‘Asynchronous’.

Synchronous and Asynchronous:

The threat that will implement this task, will wait till the task is over to return the control. It will block the current thread from executing another task until it’s done. While Asynchronous will not wait, it will directly return control, the task will start but not waiting for it to be completed, and will not block the thread from proceeding another function.

To Use Synchronous, just type as follow:

--

--

Ali Jaber

Ali Jaber

15 Followers

iOS Engineer with more than 3 years experience in developing mobile apps in both swift and objective C for both local and international customers