]>
Commit | Line | Data |
---|---|---|
74b04a01 XL |
1 | pub struct ThreadPool; |
2 | ||
3 | // ANCHOR: here | |
4 | impl ThreadPool { | |
5 | // --snip-- | |
6 | // ANCHOR_END: here | |
7 | pub fn new(size: usize) -> ThreadPool { | |
8 | ThreadPool | |
9 | } | |
10 | ||
11 | // ANCHOR: here | |
12 | pub fn execute<F>(&self, f: F) | |
13 | where | |
14 | F: FnOnce() + Send + 'static, | |
15 | { | |
16 | } | |
17 | } | |
18 | // ANCHOR_END: here |