Re: Cheating a synchronous call on the main thread
Re: Cheating a synchronous call on the main thread
- Subject: Re: Cheating a synchronous call on the main thread
- From: Quincey Morris <email@hidden>
- Date: Mon, 29 Jun 2015 17:33:30 +0000
On Jun 29, 2015, at 10:13 , Gavin Eadie <email@hidden> wrote:
>
> I suppose the first thing “fakeSyncrony” could do is grab the address of the next instruction and make it the address to call back to. This sounds a little like Jens’ “crazy runtime manipulation of the stack
The mechanism you describe already exists, in non-crazy form. It’s called “blocks”:
before
thingThatTakesTimeWithCompletionHandler: ^{ after }
_______________________________________________
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