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

Don't sleep() #13

Merged
merged 1 commit into from
Aug 31, 2016
Merged

Don't sleep() #13

merged 1 commit into from
Aug 31, 2016

Conversation

bhs
Copy link
Contributor

@bhs bhs commented Aug 31, 2016

Regardless of whether the sleeping can ever happen on the main thread, non-blocking dispatch_after() is a better practice.

Regardless of whether the sleeping can ever happen on the main thread,
non-blocking dispatch_after() is a better practice.
@bhs bhs force-pushed the bhs/no_rest_for_the_weary branch from bd91eae to f509f7d Compare August 31, 2016 05:19
@bhs
Copy link
Contributor Author

bhs commented Aug 31, 2016

cc @eugie

@@ -338,30 +338,39 @@ - (void) _refreshImp {
}
if (sleepSecs > 0) {
NSLog(@"LSTracer backing off for %@ seconds", @(sleepSecs));
[NSThread sleepForTimeInterval:sleepSecs];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For future development, it'd be good to update the comment on line 323 to reflect these changes.

@bcronin
Copy link
Contributor

bcronin commented Aug 31, 2016

Looks good

@bhs bhs merged commit 8082075 into master Aug 31, 2016
@bhs bhs deleted the bhs/no_rest_for_the_weary branch August 31, 2016 16:41
@eugie
Copy link

eugie commented Aug 31, 2016

looks good! thanks!

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