Worker
Overview
The Worker interface of the Web Workers API represents a background task that can be created via script, which can send messages back to its creator.
Location
- Reference: Island.fx
- Namespace: RemObjects.Elements.WebAssembly.DOM
- Platforms: WebAssembly
Properties
onmessage
property onmessage: EventListener read write;
EventListener onmessage { get; set; }
var onmessage: EventListener { get{} set{} }
EventListener onmessage { __get; __set; }
Property onmessage() As EventListener
onmessageerror
property onmessageerror: EventListener read write;
EventListener onmessageerror { get; set; }
var onmessageerror: EventListener { get{} set{} }
EventListener onmessageerror { __get; __set; }
Property onmessageerror() As EventListener
Required Methods
postMessage
Sends a message — consisting of any JavaScript object — to the worker's inner scope.
method postMessage(parmessage: dynamic; partransfer: dynamic): dynamic
dynamic postMessage(dynamic parmessage, dynamic partransfer)
func postMessage(_ parmessage: dynamic, _ partransfer: dynamic) -> dynamic
dynamic postMessage(dynamic parmessage, dynamic partransfer)
Function postMessage(parmessage As dynamic, partransfer As dynamic) As dynamic
Parameters:
- parmessage:
- partransfer: