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

Deprecate LightyModule#startBlocking #2047

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

ihrasko
Copy link
Collaborator

@ihrasko ihrasko commented Oct 30, 2024

Deprecate practically unused LightyModule#startBlocking method which helps us to get rid of CountDownLatch in AbstractLightyModule.

This method seems to be mixing concepts of using Future and CountDownLatch synchronisation tools. IMO there is no need to block start method.

Additionally, there were some unusual usages in tests. They were trying to invoke a blocking call and wrap its result into Future.

JIRA: LIGHTY-299
Signed-off-by: Ivan Hrasko [email protected]
(cherry picked from commit 187f7f6)

Deprecate practically unused LightyModule#startBlocking method
which helps us to get rid of CountDownLatch in AbstractLightyModule.

This method seems to be mixing concepts of using Future and
CountDownLatch synchronisation tools. IMO there is no need to block
start method.

Additionally, there were some unusual usages in tests. They were
trying to invoke a blocking call and wrap its result into Future.

JIRA: LIGHTY-299
Signed-off-by: Ivan Hrasko <[email protected]>
(cherry picked from commit 187f7f6)
@ihrasko ihrasko merged commit 4495546 into PANTHEONtech:20.x Oct 30, 2024
5 of 6 checks passed
@ihrasko ihrasko deleted the 20.x-deprecate-blocking branch October 30, 2024 13:30
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.

1 participant