Crate open_coroutine

Source
Expand description

see https://github.com/acl-dev/open-coroutine

Macros§

any_join
Waiting for one of the tasks to be completed.
any_timeout_join
Waiting for one of the tasks to be completed.
maybe_grow
Grows the call stack if necessary.
task
Create a task.

Structs§

Config
JoinHandle

Constants§

DEFAULT_PRECEDENCE
The default precedence.

Functions§

connect_timeout
Opens a TCP connection to a remote host.
crate_task
Create a task.
init
Init the open-coroutine.
maybe_grow
Grows the call stack if necessary.
shutdown
Shutdown the open-coroutine.

Attribute Macros§

main
use this macro like #[open_coroutine::main(event_loop_size = 2, max_size = 2, keep_alive_time = 0)].