Skip to content

Comments

Deprecate LightyModule#startBlocking#2046

Merged
ihrasko merged 1 commit intoPANTHEONtech:21.xfrom
ihrasko:21.x-deprecate-blocking
Oct 30, 2024
Merged

Deprecate LightyModule#startBlocking#2046
ihrasko merged 1 commit intoPANTHEONtech:21.xfrom
ihrasko:21.x-deprecate-blocking

Conversation

@ihrasko
Copy link
Collaborator

@ihrasko ihrasko commented Oct 30, 2024

Deparecate 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)

Deparecate 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 b5da5b8 into PANTHEONtech:21.x Oct 30, 2024
@ihrasko ihrasko deleted the 21.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