-
Notifications
You must be signed in to change notification settings - Fork 44
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
Make the network request asynchronous #2
Comments
Wouldn't it be simpler to have a thread call |
Well, I don't know if it'll be simpler since everyone who uses the app will end up having to write the same code, since this really needs to be non-blocking for almost every use case. So it may as well be pushed down to the app. It could be made optional via a parameter. I didn't add that yet to get your comments on the approach in case you'd want to merge something like this. |
In either case it would be much simpler to introduce thread pooling at the I am not against merging that to the library itself, I'd just prefer to keep the extra complexity out of the existing reporting mechanism. |
Sure, a thread pool will be better indeed. I'll try to update my patch some time soon. |
Blocking the server code is unrealistic in most cases. The network request should be done asynchronously.
Would you consider merging something like the following commit that uses a separate thread?
adityar7@770d199
The text was updated successfully, but these errors were encountered: