Struct green::PoolConfig[src]
pub struct PoolConfig {
pub threads: uint,
pub event_loop_factory: fn() -> Box<EventLoop + Send>,
}Configuration of how an M:N pool of schedulers is spawned.
Fields
threads | The number of schedulers (OS threads) to spawn into this M:N pool. |
event_loop_factory | A factory function used to create new event loops. If this is not specified then the default event loop factory is used. |
Methods
impl PoolConfig
fn new() -> PoolConfig
Returns the default configuration, as determined the environment variables of this process.