We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 453d770 + 971842a commit 61a592dCopy full SHA for 61a592d
futures-cpupool/src/lib.rs
@@ -129,8 +129,13 @@ impl CpuPool {
129
/// thread pool.
130
///
131
/// This is a shortcut for:
132
+ ///
133
/// ```rust
134
+ /// # use futures_cpupool::{Builder, CpuPool};
135
+ /// #
136
+ /// # fn new(size: usize) -> CpuPool {
137
/// Builder::new().pool_size(size).create()
138
+ /// # }
139
/// ```
140
141
/// # Panics
@@ -144,8 +149,13 @@ impl CpuPool {
144
149
/// of CPUs on the host.
145
150
146
151
152
147
153
154
155
156
+ /// # fn new_num_cpus() -> CpuPool {
148
157
/// Builder::new().create()
158
159
160
pub fn new_num_cpus() -> CpuPool {
161
Builder::new().create()
0 commit comments