the config should be called at the program beginning
successive call would not tack effect for that the scheduler
is already started
set the worker thread number
the minimum worker thread is 1, if you pass 0 to it, will use internal default
get the normal workers number
set the io worker thread number
if you pass in 0, all the coroutines would be scheduled on worker thread
get the io workers number
set cached coroutine pool number
if you pass 0 to it, will use internal default
get the coroutine pool capacity
set default coroutine stack size in usize
if you pass 0 to it, will use internal default
get the default coroutine stack size
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static