QueueMicrotaskCallable

@Singleton
@Intrinsic(global = "queueMicrotask")
class QueueMicrotaskCallable @Inject constructor(executorProvider: GuestExecutorProvider) : AbstractJsIntrinsic, ProxyExecutable

Queue Microtask Callable

Mounts a callable intrinsic function at the name queueMicrotask, in compliance with Web JavaScript standards which expect this function to be available in the global scope. The queueMicrotask function is used to queue a chunk of code to execute safely on the JavaScript event loop.

MDN

Constructors

Link copied to clipboard
@Inject
constructor(executorProvider: GuestExecutorProvider)

Properties

Link copied to clipboard

Indicate whether this symbol is considered runtime-internal.

Functions

Link copied to clipboard
open override fun displayName(): String

Return the display name of this intrinsic; this is typically the Symbol bound to the value.

Link copied to clipboard
open override fun execute(vararg arguments: Value?): Any?
Link copied to clipboard

Install this intrinsic into the provided context bindings for a fresh context; this will only be called once per spawned context.

Link copied to clipboard
open override fun language(): GuestLanguage

Indicate the language which this intrinsic is intended to be used with.

Link copied to clipboard
open fun supports(language: GuestLanguage): Boolean

Indicate whether this intrinsic is intended to be used with a given guest language.

Link copied to clipboard
open override fun symbolicName(): String

Return the display name of this intrinsic; this is typically the Symbol bound to the value.