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

Why sendBroadcastSync over sendBroadcast? #44

Closed
Dragas opened this issue Mar 22, 2019 · 2 comments
Closed

Why sendBroadcastSync over sendBroadcast? #44

Dragas opened this issue Mar 22, 2019 · 2 comments
Labels

Comments

@Dragas
Copy link

Dragas commented Mar 22, 2019

In the example you suggest using sendBroadcastSync, but documentation suggests that it's a blocking operation. How come you suggest using it over the regular version of that call?

@bsorrentino
Copy link
Owner

bsorrentino commented Mar 22, 2019

Hi @Dragas

sendBroadcastSync vs sendBroadcast is like synchronous vs asynchronous and for sure this will involve the thread on which the message will be processed.

However the plugin forces execution within UIThread so you can use which you prefer depending on yours use case

hope this help

@bsorrentino
Copy link
Owner

closed for inactivity

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

No branches or pull requests

2 participants