Type Parameters

Hierarchy

Constructors

Properties

OPTIONS: Options
RPC_TYPE_ID: string

Should be set to a constant specifying the SharedObject type identifier on the prototype of final derived owner classes. It is not used on counterpart (non-owner) classes.

chunkManager: ChunkManager
chunks: Map<string, Chunk> = ...
dataSource: PythonDataSource
disposedStacks: any
generation: number
immediateChunkUpdates: boolean = false

If set to true, chunk updates will be applied to this source immediately, rather than queueing them. Sources that dynamically update chunks and need to ensure a consistent order of processing relative to other messages between the frontend and worker should set this to true.

isOwner: undefined | boolean
key: any
refCount: number = 1
referencedGeneration: number
rpc: null | RPC = null
rpcId: null | number = null
unreferencedGeneration: number
wasDisposed: undefined | boolean
prototype: any

Accessors

Methods

  • Precondition: this.isOwner === true.

    Returns {
        gen: number;
        id: null | number;
    }

    • gen: number
    • id: null | number
  • Precondition: this.isOwner === true.

    This should be called when the counterpart's refCount is decremented and reaches zero.

    Parameters

    • generation: number

    Returns void

  • Type Parameters

    • T extends {
          cancel: (() => void);
      }

    Parameters

    • cancellable: T

    Returns T

Generated using TypeDoc