For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/react/Interfaces/MainThreadObjectHandle.md.
  • English
    • 简体中文
  • Abstract Interface: MainThreadObjectHandle<I, O extends object>

    An opaque source-runtime handle for an object realized on the main thread.

    A handle has logical identity and is serializable, but it is not the target object or an RPC stub. Capturing it in a main-thread function resolves it to the corresponding local target object. Development builds may wrap the background handle in a throwing guard solely to diagnose invalid access; that guard never forwards operations between runtimes.

    Type Parameters

    Type Parameter
    I
    O extends object

    Accessors

    creationPayload

    Get Signature

    get creationPayload(): Readonly<I>

    The payload used to create the realized object.

    Readonly is a TypeScript contract; the value is not frozen at runtime.

    Returns

    Readonly<I>

    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.