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 Server::try_bind #16

Merged
merged 1 commit into from
Jan 12, 2025
Merged

Conversation

tdryer
Copy link
Contributor

@tdryer tdryer commented Jan 8, 2025

Add Server::try_bind as an alternative to bind that returns an error instead of panicking on bind failure. This makes it possible to avoid panicking for common failures such as the address already being in use.

Thanks for creating Astra!

Add `Server::try_bind` as an alternative to `bind` that returns an error
instead of panicking on bind failure. This makes it possible to avoid
panicking for common failures such as the address already being in use.
@ibraheemdev
Copy link
Owner

Nice, thanks!

@ibraheemdev ibraheemdev merged commit 4e74c71 into ibraheemdev:master Jan 12, 2025
5 checks passed
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.

2 participants