Interface: BLZWorker
threading/worker.BLZWorker
Hierarchy
Worker
โณ
BLZWorker
Properties
onerror
โข onerror: (ev
: ErrorEvent
) => any
Type declaration
โธ (ev
): any
Parameters
Name | Type |
---|---|
ev | ErrorEvent |
Returns
any
Inherited from
Worker.onerror
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1970
onmessageerror
โข onmessageerror: (ev
: MessageEvent
<any
>) => any
Type declaration
โธ (ev
): any
Parameters
Name | Type |
---|---|
ev | MessageEvent <any > |
Returns
any
Inherited from
Worker.onmessageerror
Defined in
node_modules/typescript/lib/lib.dom.d.ts:17433
Methods
addEventListener
โธ addEventListener<K
>(type
, listener
, options?
): void
Type parameters
Name | Type |
---|---|
K | extends keyof WorkerEventMap |
Parameters
Name | Type |
---|---|
type | K |
listener | (ev : WorkerEventMap [K ]) => any |
options? | boolean | AddEventListenerOptions |
Returns
void
Inherited from
Worker.addEventListener
Defined in
node_modules/typescript/lib/lib.dom.d.ts:17443
โธ addEventListener(type
, listener
, options?
): void
Parameters
Name | Type |
---|---|
type | string |
listener | EventListenerOrEventListenerObject |
options? | boolean | AddEventListenerOptions |
Returns
void
Inherited from
Worker.addEventListener
Defined in
node_modules/typescript/lib/lib.dom.d.ts:17444
dispatchEvent
โธ dispatchEvent(event
): boolean
Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
Parameters
Name | Type |
---|---|
event | Event |
Returns
boolean
Inherited from
Worker.dispatchEvent
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5210
onmessage
โธ onmessage(e
): void
Parameters
Name | Type |
---|---|
e | Object |
e.data | WorkerMessage |
Returns
void
Overrides
Worker.onmessage
Defined in
src/threading/worker.ts:11
postMessage
โธ postMessage(data
): void
Parameters
Name | Type |
---|---|
data | WorkerMessage |
Returns
void
Overrides
Worker.postMessage
Defined in
src/threading/worker.ts:10
removeEventListener
โธ removeEventListener<K
>(type
, listener
, options?
): void
Type parameters
Name | Type |
---|---|
K | extends keyof WorkerEventMap |
Parameters
Name | Type |
---|---|
type | K |
listener | (ev : WorkerEventMap [K ]) => any |
options? | boolean | EventListenerOptions |
Returns
void
Inherited from
Worker.removeEventListener
Defined in
node_modules/typescript/lib/lib.dom.d.ts:17445
โธ removeEventListener(type
, listener
, options?
): void
Parameters
Name | Type |
---|---|
type | string |
listener | EventListenerOrEventListenerObject |
options? | boolean | EventListenerOptions |
Returns
void
Inherited from
Worker.removeEventListener
Defined in
node_modules/typescript/lib/lib.dom.d.ts:17446
terminate
โธ terminate(): void
Aborts worker's associated global environment.
Returns
void
Inherited from
Worker.terminate
Defined in
node_modules/typescript/lib/lib.dom.d.ts:17442