Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WorkerWrapper

A wrapper class around the MQL worker that provides a typed RPC interface.

TODO: Add helper functions to clean up the API (eg, #parseQuery() instead of sending a "parseQuery" message).

export
class

WorkerWrapper

Hierarchy

  • WorkerWrapper

Implements

  • IDisposable

Index

Constructors

constructor

Properties

Private _isDisposed

_isDisposed: boolean = false

Private onMessageSrc

onMessageSrc: Subject<IRunQuerySuccessResult | IRunQueryErrorResult | IRunEvalSuccessResult | IRunEvalErrorResult | IParseQueryResult | IGetFunctionsResult | IKernelEvalRequest | IFetchRequest | IStaticCacheRequest> = new Subject<WorkerResponse.IMsg>()

Private worker

worker: Worker

Accessors

isDisposed

  • get isDisposed(): boolean

onMessage

  • get onMessage(): Observable<IMsg>

Methods

dispose

  • dispose(): void

postMessage

  • postMessage(msg: IMsg): void

terminate

  • terminate(): void

Generated using TypeDoc