IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: Nightly
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

async_value

Provides a limited Mojo handle to the AsyncRT AsyncValue type.

AnyAsyncValueRef is an owning, reference-counted handle to a C++ AsyncValue. It is used as the storage handle that keeps a device buffer's or tensor's backing memory alive (for example, inside the OwnedByteBuffer and OwnedTensor composites), mirroring the C++ AnyAsyncValueRef / RCRef[AsyncValue].

Structs

  • AnyAsyncValueRef: Owning, reference-counted handle to a C++ AsyncValue -- a limited Mojo counterpart of the C++ AnyAsyncValueRef / RCRef[AsyncValue].