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

Add workers_available/0 fun #40

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

varnerac
Copy link

Adds a workers_available/0 function to detect if there are bcrypt (nif or port) available. This function is useful for load shedding.

@mworrell
Copy link
Member

Hi, nice addition and clean implementation.

One question, could we call it is_worker_available/0 ? Then it is clear that we expect a boolean result.

@mworrell mworrell self-assigned this Apr 13, 2023
@varnerac
Copy link
Author

I'll make that change.

@varnerac
Copy link
Author

Pushed with associated doc changes

@mworrell
Copy link
Member

Great work, thank you!

@mworrell mworrell merged commit 257683d into erlangpack:master Apr 13, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants