diff options
| author | mat <git@matdoes.dev> | 2026-01-28 05:41:51 +0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-01-28 05:41:51 +0600 |
| commit | 679b112deeee1be9f773c6bd369bc1a975fe1628 (patch) | |
| tree | 6369737e480a97419955058a23a6b8497e13a335 /azalea/src/builder.rs | |
| parent | 0ba73a30dc6cdba3cafd726b4a94afee6157d035 (diff) | |
| download | azalea-drasl-679b112deeee1be9f773c6bd369bc1a975fe1628.tar.xz | |
add Client::exit and Swarm::exit, and write related docs
Diffstat (limited to 'azalea/src/builder.rs')
| -rw-r--r-- | azalea/src/builder.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/azalea/src/builder.rs b/azalea/src/builder.rs index db51de63..0cb4abbf 100644 --- a/azalea/src/builder.rs +++ b/azalea/src/builder.rs @@ -150,7 +150,13 @@ where /// If this function isn't called, then our client will reconnect after /// [`DEFAULT_RECONNECT_DELAY`]. /// + /// Note that disabling auto-reconnecting will not make + /// [`ClientBuilder::start`] return on disconnect, because Azalea will keep + /// the internal swarm around forever until it's forcibly exited. To learn + /// how to do that, see [`Client::exit`]. + /// /// [`DEFAULT_RECONNECT_DELAY`]: crate::auto_reconnect::DEFAULT_RECONNECT_DELAY + /// [`Client::exit`]: crate::Client::exit #[must_use] pub fn reconnect_after(mut self, delay: impl Into<Option<Duration>>) -> Self { self.swarm.reconnect_after = delay.into(); |
