This website works better with JavaScript.
Home
Explore
Help
Sign In
noelle
/
rust-webserver
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Add functions
master
Noelle
4 years ago
parent
73acd2bd44
commit
be682e952e
1 changed files
with
9 additions
and
1 deletions
Split View
Show Diff Stats
9
1
src/lib.rs
+ 9
- 1
src/lib.rs
View File
@@ -1,5 +1,13 @@
pub struct 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 {
}
}
Write
Preview
Loading…
Cancel
Save