swarm/: Link ThreadPool in documentation (#3067)

This commit is contained in:
João Oliveira 2022-11-02 15:09:55 +00:00 committed by GitHub
parent df659e5bcd
commit 64e38bd6b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1297,7 +1297,8 @@ where
/// Configures the `Executor` to use for spawning background tasks.
///
/// By default, unless another executor has been configured,
/// [`SwarmBuilder::build`] will try to set up a `ThreadPool`.
/// [`SwarmBuilder::build`] will try to set up a
/// [`ThreadPool`](futures::executor::ThreadPool).
pub fn executor(mut self, e: Box<dyn Executor + Send>) -> Self {
self.pool_config = self.pool_config.with_executor(e);
self