Hierarchy

Constructors

Properties

OPTIONS: {
    parameters: MeshSourceParameters;
} & {
    dataSource: PythonDataSource;
    generation: number;
}
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> & Map<string, ManifestChunk> = ...
dataSource: PythonDataSource
disposedStacks: any
fragmentSource: FragmentSource = ...
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
encodeOptions: ((options: Options) => any) & ((options: {
    parameters: MeshSourceParameters;
}) => any) & ((_options: {}) => {
    [key: string]: any;
}) & ((options: Options) => 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

  • Returns void

  • Parameters

    • rpc: RPC
    • options: any = {}

    Returns void

  • Parameters

    • rpc: RPC
    • options: any

    Returns void

  • Parameters

    • rpc: RPC
    • rpcId: number = ...

    Returns void

  • Invalidates the chunk cache. Operates asynchronously.

    Returns void

  • Precondition: this.isOwner === true.

    Returns void

  • Returns void

  • Type Parameters

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

    Parameters

    • cancellable: T

    Returns T

  • Type Parameters

    Parameters

    • f: T

    Returns T

  • Type Parameters

    Parameters

    • f: T

    Returns T

Generated using TypeDoc