WebWorker
Web worker class.
Example:
API:
->do():Promise - do display.
->start()
->stop()
Constructor Summary
Public Constructor | ||
public |
constructor(arg_worker_name: string, arg_script_url: string): nothing Creates a web worker instance. |
Member Summary
Public Members | ||
public |
Class type flag. |
Private Members | ||
private |
_name: * |
|
private |
_requests: {} |
|
private |
|
|
private |
_worker: * |
Method Summary
Public Methods | ||
public |
Get worker name. |
|
public |
process_error(arg_error: any): Promise Process error. |
|
public |
process_response(arg_data: any): nothing Process message response. |
|
public |
stop() Stop worker. |
|
public |
submit_request(arg_data: any): Promise Submit a request. |
Public Constructors
Public Members
Private Members
private _name: * source
private _requests: {} source
private _worker: * source
Public Methods
public process_error(arg_error: any): Promise source
Process error.
Params:
Name | Type | Attribute | Description |
arg_error | any | processing error. |
public process_response(arg_data: any): nothing source
Process message response.
Params:
Name | Type | Attribute | Description |
arg_data | any | response data. |
Return:
nothing |