You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently spicing up one of my RubyMotion apps with BubbleWrap. A little bit of code I have works fine with GCD but crashes using App.run_after. My knowledge of the Objective C threading model and Timers vs GCD is limited, so I'm not sure whether this would break a bunch of existing code.
Anyway, my example:
loc = @mapView.region.center
Dispatch::Queue.main.after 0.4 do
new_loc = @mapView.region.center
if loc == new_loc
self.updateLocation
end
end
The change to BubbleWrap would be super quick, though I haven't made the change and tested it. Just wanted to check it was a sane thing to do.
The text was updated successfully, but these errors were encountered:
I'm currently spicing up one of my RubyMotion apps with BubbleWrap. A little bit of code I have works fine with GCD but crashes using App.run_after. My knowledge of the Objective C threading model and Timers vs GCD is limited, so I'm not sure whether this would break a bunch of existing code.
Anyway, my example:
The change to BubbleWrap would be super quick, though I haven't made the change and tested it. Just wanted to check it was a sane thing to do.
The text was updated successfully, but these errors were encountered: