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

Removing blocking keyword #361

Merged
merged 2 commits into from
Apr 6, 2018
Merged

Removing blocking keyword #361

merged 2 commits into from
Apr 6, 2018

Conversation

skakker
Copy link
Contributor

@skakker skakker commented Apr 6, 2018

Removing blocking keyword to ensure that a large number of threads are not created if some of the threads are blocked.

@shankar37
Copy link
Contributor

where is the change to make the request.get async and add callback ? Dont they need to go together ?

@skakker
Copy link
Contributor Author

skakker commented Apr 6, 2018

Not necessarily, the removal of "blocking" keyword would only ensure that infinitely large number of threads are not spawned if some threads are blocked.
The request.async would only guarantee that the thread is not blocked waiting for the response. Its good to have it, but these two changes are independent of each other.

@akshayrai
Copy link
Contributor

+1, I hope you have removed all occurrences of blocking.

@skakker
Copy link
Contributor Author

skakker commented Apr 6, 2018

Yupp, removed now.

@skakker skakker changed the title removing blocking Removing blocking keyword Apr 6, 2018
@akshayrai akshayrai merged commit 50a7409 into linkedin:master Apr 6, 2018
pralabhkumar pushed a commit to pralabhkumar/dr-elephant that referenced this pull request Aug 31, 2018
Removing blocking keyword to ensure that a large number of threads are not created if some of the threads are blocked.
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

Successfully merging this pull request may close these issues.

None yet

3 participants