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

Fix the initialization order in GenericScheduledExecutorService #3588

Merged
merged 1 commit into from
Dec 27, 2015

Conversation

zsxwing
Copy link
Member

@zsxwing zsxwing commented Dec 27, 2015

The static GenericScheduledExecutorService.None should be initialized before creating any GenericScheduledExecutorService instance. Although the previous codes happen to work, it's sill worth to fix it.

The static `GenericScheduledExecutorService.None` should be initialized before creating any GenericScheduledExecutorService instance.
@akarnokd
Copy link
Member

The situation can't happen because class initialization locks out callers.

Otherwise, the cleanup never hurts.

👍

akarnokd added a commit that referenced this pull request Dec 27, 2015
Fix the initialization order in GenericScheduledExecutorService
@akarnokd akarnokd merged commit 6aa760e into ReactiveX:1.x Dec 27, 2015
@zsxwing zsxwing deleted the init-order branch December 28, 2015 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants