Browse Source

Add functions

master
Noelle 5 years ago
parent
commit
be682e952e
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      src/lib.rs

+ 9
- 1
src/lib.rs View File

pub struct ThreadPool; pub struct ThreadPool;


impl ThreadPool { impl ThreadPool {
pub fn new(size: usize) -> ThreadPool {
assert!(size > 0);
ThreadPool
}

pub fn execute<F>(&self, f: F)
where F: FnOnce() + Send + 'static {

}
} }

Loading…
Cancel
Save