Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait for objc block #97

Open
lukaskollmer opened this issue Apr 6, 2017 · 0 comments
Open

Wait for objc block #97

lukaskollmer opened this issue Apr 6, 2017 · 0 comments

Comments

@lukaskollmer
Copy link

I want to wait for an async objc block to finish before returning from a JavaScript function. The problem is that the node process exists before the block is called by Cocoa. How can I wait for the block and make sure node doesn't exit until after the block was called?

I know that in Objective-C, I can use a dispatch_semaphore_t, but I couldn't get that working via NodObjC.

Any ideas?

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

No branches or pull requests

1 participant