Function gotham::start [] [src]

pub fn start<NH, A>(addr: A, new_handler: NH) where
    NH: NewHandler + 'static,
    A: ToSocketAddrs

Starts a Gotham application, with the default number of threads (equal to the number of CPUs).

Windows

An additional thread is used on Windows to accept connections.