System & I/O4 exports
Raw Markdown/runtime
Multi-threaded Tokio async runtime construction and blocking entry points (Async-Runtime, run, block-on).
Functions & symbols#
Async-Runtime#
function
Constructs a multi-threaded Tokio `AsyncRuntime` instance.
Returns:
Any(let rt (runtime/Async-Runtime))Async-Runtime-construct#
constructor
Underlying constructor backing `(Async-Runtime)`.
Returns:
Any(let rt (runtime/Async-Runtime-construct))block-on#
function
Executes `func` on `rt` and blocks until all spawned async operations complete.
| Parameter | Type | Optional | Description |
|---|---|---|---|
rt | AsyncRuntime | required | Runtime instance |
func | Func | required | Zero-argument closure executed inside `rt` |
Returns:
Any(runtime/block-on rt (Func () (run-server)))run#
function
Dynamically binds `*runtime*` to `rt` and drives `func` to completion.
| Parameter | Type | Optional | Description |
|---|---|---|---|
rt | AsyncRuntime | required | Runtime instance |
func | Func | required | Zero-argument closure run with `*runtime*` dynamically bound to `rt` |
Returns:
Any(runtime/run (runtime/Async-Runtime) (Func () (main)))