Struct may::Config [] [src]

pub struct Config;

May Configuration type

Methods

impl Config
[src]

the config should be called at the program beginning

successive call would not tack effect for that the scheduler is already started

[src]

set the worker thread number

the minimum worker thread is 1, if you pass 0 to it, will use internal default

[src]

get the normal workers number

[src]

set the io worker thread number

if you pass in 0, all the coroutines would be scheduled on worker thread

[src]

get the io workers number

[src]

set coroutine pool number, 0 means unlimited

if you pass 0 to it, will use internal default

[src]

get the coroutine pool capacity

[src]

set default coroutine stack size in usize

if you pass 0 to it, will use internal default

[src]

get the default coroutine stack size