Skip to content

Add Server::try_bind#16

Merged
ibraheemdev merged 1 commit intoibraheemdev:masterfrom
tdryer:server_try_bind
Jan 12, 2025
Merged

Add Server::try_bind#16
ibraheemdev merged 1 commit intoibraheemdev:masterfrom
tdryer:server_try_bind

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