Expand description
async
dialect.
This dialect contains operations for modeling asynchronous execution.
Structs§
- An
add_to_group
operation. Adds and async token or value to the group. - A builder for an
add_to_group
operation. - An
await_all
operation. Waits for the all async tokens or values in the group to become ready. - A builder for an
await_all
operation. - An
await
operation. Waits for the argument to become ready. - A builder for an
await
operation. - A
call
operation. Async call operation. - A builder for a
call
operation. - A
coro.begin
operation. Returns a handle to the coroutine. - A builder for a
coro.begin
operation. - A
coro.end
operation. Marks the end of the coroutine in the suspend block. - A builder for a
coro.end
operation. - A
coro.free
operation. Deallocates the coroutine frame. - A builder for a
coro.free
operation. - A
coro.id
operation. Returns a switched-resume coroutine identifier. - A builder for a
coro.id
operation. - A
coro.save
operation. Saves the coroutine state. - A builder for a
coro.save
operation. - A
coro.suspend
operation. Suspends the coroutine. - A builder for a
coro.suspend
operation. - A
create_group
operation. Creates an empty async group. - A builder for a
create_group
operation. - An
execute
operation. Asynchronous execute operation. - A builder for an
execute
operation. - A
func
operation. Async function operation. - A builder for a
func
operation. - A
return
operation. Async function return operation. - A builder for a
return
operation. - A
runtime.add_ref
operation. Adds a reference to async value. - A builder for a
runtime.add_ref
operation. - A
runtime.add_to_group
operation. Adds and async token or value to the group. - A builder for a
runtime.add_to_group
operation. - A
runtime.await_and_resume
operation. Awaits the async operand and resumes the coroutine. - A builder for a
runtime.await_and_resume
operation. - A
runtime.await
operation. Blocks the caller thread until the operand becomes available. - A builder for a
runtime.await
operation. - A
runtime.create_group
operation. Creates an async runtime group. - A builder for a
runtime.create_group
operation. - A
runtime.create
operation. Creates an async runtime token or value. - A builder for a
runtime.create
operation. - A
runtime.drop_ref
operation. Drops a reference to async value. - A builder for a
runtime.drop_ref
operation. - A
runtime.is_error
operation. Returns true if token, value or group is in error state. - A builder for a
runtime.is_error
operation. - A
runtime.load
operation. Loads the value from the runtime async.value. - A builder for a
runtime.load
operation. - A
runtime.num_worker_threads
operation. Gets the number of threads in the threadpool from the runtime. - A builder for a
runtime.num_worker_threads
operation. - A
runtime.resume
operation. Resumes the coroutine on a thread managed by the runtime. - A builder for a
runtime.resume
operation. - A
runtime.set_available
operation. Switches token or value to available state. - A builder for a
runtime.set_available
operation. - A
runtime.set_error
operation. Switches token or value to error state. - A builder for a
runtime.set_error
operation. - A
runtime.store
operation. Stores the value into the runtime async.value. - A builder for a
runtime.store
operation. - A
yield
operation. Terminator for Async execute operation. - A builder for a
yield
operation.
Functions§
- Creates an
add_to_group
operation. - Creates an
await
operation. - Creates an
await_all
operation. - Creates a
call
operation. - Creates a
coro.begin
operation. - Creates a
coro.end
operation. - Creates a
coro.free
operation. - Creates a
coro.id
operation. - Creates a
coro.save
operation. - Creates a
coro.suspend
operation. - Creates a
create_group
operation. - Creates an
execute
operation. - Creates a
func
operation. - Creates a
return
operation. - Creates a
runtime.add_ref
operation. - Creates a
runtime.add_to_group
operation. - Creates a
runtime.await
operation. - Creates a
runtime.await_and_resume
operation. - Creates a
runtime.create
operation. - Creates a
runtime.create_group
operation. - Creates a
runtime.drop_ref
operation. - Creates a
runtime.is_error
operation. - Creates a
runtime.load
operation. - Creates a
runtime.num_worker_threads
operation. - Creates a
runtime.resume
operation. - Creates a
runtime.set_available
operation. - Creates a
runtime.set_error
operation. - Creates a
runtime.store
operation. - Creates a
yield
operation.