Skip to content

Comments

Remove LightyModule#startBlocking#2034

Merged
ihrasko merged 1 commit intoPANTHEONtech:mainfrom
ihrasko:remove-blocking
Oct 30, 2024
Merged

Remove LightyModule#startBlocking#2034
ihrasko merged 1 commit intoPANTHEONtech:mainfrom
ihrasko:remove-blocking

Conversation

@ihrasko
Copy link
Collaborator

@ihrasko ihrasko commented Oct 29, 2024

Remove 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.

@ihrasko ihrasko force-pushed the remove-blocking branch 4 times, most recently from f82ca5f to 44a12a0 Compare October 29, 2024 14:53
Remove 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]>
@ihrasko ihrasko merged commit af62885 into PANTHEONtech:main Oct 30, 2024
@ihrasko ihrasko deleted the remove-blocking branch October 30, 2024 11:40
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