You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
305 B

pub struct ThreadPool;
// ANCHOR: here
impl ThreadPool {
// --snip--
// ANCHOR_END: here
pub fn new(size: usize) -> ThreadPool {
ThreadPool
}
// ANCHOR: here
pub fn execute<F>(&self, f: F)
where
F: FnOnce() + Send + 'static,
{
}
}
// ANCHOR_END: here