目录

Multithreaded Worker

Definition

API

Description

qg.createWorker(string scriptPath) (1117+)

Creates a Worker thread in the main thread.

Worker.postMessage(Object message) (1117+)

Enables the main thread and the Worker thread to send messages to each other.

Worker.onMessage(Function listener) (1117+)

Enables the main thread and the Worker thread to receive messages from each other.

Worker.terminate() (1117+)

Terminates the Worker thread in the main thread.

[h2]qg.createWorker(string scriptPath) (1117+)

[h2]Worker.postMessage(Object message) (1117+)

[h2]Worker.onMessage(Function listener) (1117+)

[h2]Worker.terminate() (1117+)