gatekeeper 3.0.0

A SOCKS proxy implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::io;

use std::thread::{self, JoinHandle};

/// spawn `name`d thread performs `f`
pub fn spawn_thread<F, R>(name: &str, f: F) -> io::Result<JoinHandle<R>>
where
    F: FnOnce() -> R + Send + 'static,
    R: Send + 'static,
{
    thread::Builder::new().name(name.into()).spawn(f)
}