Anchorage API reference
    Preparing search index...

    Interface DurableObjectRunOwnershipStore

    interface DurableObjectRunOwnershipStore {
        owner(
            kind: "run" | "thread" | "resource" | "schedule",
            resourceId: string,
        ): Promise<DurableObjectRunOwner | undefined>;
        release?(
            kind: "run",
            resourceId: string,
            owner: DurableObjectRunOwner,
        ): Promise<boolean>;
        reserveAll(
            claims: readonly { kind: "run"; resourceId: string }[],
            owner: DurableObjectRunOwner,
            token: string,
        ): Promise<boolean>;
        settleReservation(
            token: string,
            release: readonly { kind: "run"; resourceId: string }[],
        ): Promise<void>;
    }
    Index

    Methods

    • Parameters

      • token: string
      • release: readonly { kind: "run"; resourceId: string }[]

      Returns Promise<void>