TaskSignal

The TaskSignal interface of the Prioritized Task Scheduling API represents a signal object that allows you to communicate with a prioritized task, and abort it or change the priority (if required) via a TaskController object.

MDN Reference

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
external val aborted: Boolean
Link copied to clipboard
Link copied to clipboard
external val priority: TaskPriority

The read-only priority property of the TaskSignal interface indicates the signal priority.

Link copied to clipboard
external val reason: JsErrorLike?

Functions

Link copied to clipboard
open external fun dispatchEvent(event: Event): Boolean
Link copied to clipboard
external fun throwIfAborted()
Link copied to clipboard
external fun <T : Event> when(type: EventType<T>, options: ObservableEventListenerOptions?): Observable<T>