mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-11 18:37:13 +00:00
swarm/: Link ThreadPool
in documentation (#3067)
This commit is contained in:
parent
df659e5bcd
commit
64e38bd6b4
@ -1297,7 +1297,8 @@ where
|
|||||||
/// Configures the `Executor` to use for spawning background tasks.
|
/// Configures the `Executor` to use for spawning background tasks.
|
||||||
///
|
///
|
||||||
/// By default, unless another executor has been configured,
|
/// 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 {
|
pub fn executor(mut self, e: Box<dyn Executor + Send>) -> Self {
|
||||||
self.pool_config = self.pool_config.with_executor(e);
|
self.pool_config = self.pool_config.with_executor(e);
|
||||||
self
|
self
|
||||||
|
Loading…
x
Reference in New Issue
Block a user