Skip to content

Better name for ready?#16

Merged
nathanmonteleone merged 2 commits into
mainfrom
better_name_for_ready
Aug 7, 2025
Merged

Better name for ready?#16
nathanmonteleone merged 2 commits into
mainfrom
better_name_for_ready

Conversation

@nathanmonteleone

@nathanmonteleone nathanmonteleone commented Jul 23, 2025

Copy link
Copy Markdown

Producer.ready? does not really behave like a predicate. Rather it blocks then returns true on success, or raises an exception on timeout. I think wait_ready! is therefore a better name.

https://simplifi.atlassian.net/browse/INT-11818

Comment thread lib/elsa/dynamic_process_manager.ex Outdated
end

def ready?(server, timeout \\ 10_000) do
def wait_ready!(server, timeout \\ 10_000) do

@nathanmonteleone nathanmonteleone Jul 23, 2025

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

DynamicProcessorModule is documented with @moduledoc false indicating internal-only, so I believe I am within my rights to just change the function name entirely.

@LiruMouse LiruMouse left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I swear I reviewed this already 😅

@nathanmonteleone
nathanmonteleone merged commit d226343 into main Aug 7, 2025
3 checks passed
@nathanmonteleone
nathanmonteleone deleted the better_name_for_ready branch August 7, 2025 17:55
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.

4 participants