Re: [OT] Sync vs ASync Server Comms
Re: [OT] Sync vs ASync Server Comms
- Subject: Re: [OT] Sync vs ASync Server Comms
- From: Ten Horses | Diederik Meijer <email@hidden>
- Date: Fri, 22 Feb 2013 11:29:36 +0100
- Organization: Ten Horses
On iOS sync will freeze your user interface for the duration of the network call, because it is done on the main thread, async
is done in the background and keeps the interface responsive, you can then update your data when done
Dave schreef op 2013-02-22
11:13:
> Hi All,
>
> I was reading an article about Server/Client communications using a
> Rest service and the author seemed to
have a downer on using the Sync
> (as opposed to ASync) methods of making a request and receiving a
> reply. Also I've noticed it
being generally discouraged in quite a
> few other places when I was searching for 3rd Party Network
> Libraries. However, I can't
find any reason behind it? Does anyone
> have any idea why ASync transactions are better than Sync
> transactions? Or is it just
Sync'ism? lol
>
> Have a Good Weekend!
>
> Thanks
> Dave
>
> _______________________________________________
>
> Cocoa-dev
mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the
moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
>
> This email sent to email@hidden
Links:
------
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden