Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Should Obj-C completion handler wait for JS? #6

Open
holmesal opened this issue Feb 18, 2016 · 0 comments
Open

Should Obj-C completion handler wait for JS? #6

holmesal opened this issue Feb 18, 2016 · 0 comments
Labels

Comments

@holmesal
Copy link
Owner

On the Obj-C side, completion handlers are currently called immediately after the app event has been sent over the bridge. I haven't come up against any cases where this was disadvantageous, but I'm also not doing anything serious like fetching something over the network.

If this turns out the be a problem - an alternative implementation would be to store the obj-c completion handlers (no idea how to do this) by id, and pass that id over the bridge so that they can be invoked when the user calls done().

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant