AbstractWorker

external interface AbstractWorker (source)

Platform and version requirements: JS

Exposes the JavaScript AbstractWorker to Kotlin

Properties

onerror

abstract var onerror: (Event) -> dynamic

Inherited Functions

equals

open operator fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:

hashCode

open fun hashCode(): Int

Returns a hash code value for the object. The general contract of hashCode is:

toString

open fun toString(): String

Returns a string representation of the object.

Inheritors

ServiceWorker

abstract external class ServiceWorker : 
    EventTarget,
    AbstractWorker,
    UnionMessagePortOrServiceWorker,
    UnionClientOrMessagePortOrServiceWorker

Exposes the JavaScript ServiceWorker to Kotlin

SharedWorker

open external class SharedWorker : 
    EventTarget,
    AbstractWorker

Exposes the JavaScript SharedWorker to Kotlin

Worker

open external class Worker : EventTarget, AbstractWorker

Exposes the JavaScript Worker to Kotlin