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§
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)]
.