2 ms·
Hi, technical question from a long-time iOS developer here, i hope you can put my concerns at ease: How, when you're running JS on a different thread to the iO
by chubs 12y ago
Hi, technical question from a long-time iOS developer here, i hope you can put my concerns at ease:
How, when you're running JS on a different thread to the iOS main thread, do you avoid race conditions? A simple example:
* Say a button's event handler pushes a new view controller onto the navigation stack, what's to stop the user from tapping the button twice very quickly before the JS thread gets a chance to service the first tap, eg it may be garbage collecting or busy elsewhere, and once it's free again it runs the handler twice and pushes two view controllers onto the navigation stack?
Looks great by the way, i'll certainly check it out.