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

Mojo module

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