Anchorage API reference
    Preparing search index...

    Interface ResourceOwnershipStore

    interface ResourceOwnershipStore {
        claim(
            kind: "run" | "thread" | "resource" | "schedule",
            resourceId: string,
            owner: ResourceOwner,
        ): Promise<boolean>;
        owner(
            kind: "run" | "thread" | "resource" | "schedule",
            resourceId: string,
        ): Promise<ResourceOwner | undefined>;
        release(
            kind: "run" | "thread" | "resource" | "schedule",
            resourceId: string,
            owner: ResourceOwner,
        ): Promise<boolean>;
    }

    Hierarchy (View Summary)

    Index

    Methods