Companion

object Companion

Host-side factory methods.

Functions

Link copied to clipboard
fun aborted(reason: Any? = null): AbortSignal

Internal static method to create a new AbortSignal instance which has already been aborted; meant to be called from AbortController only.

Link copied to clipboard

Internal static method to create a new AbortSignal instance; meant to be called from AbortController only.

Link copied to clipboard

Internal static method to create a new AbortSignal instance; meant to be called from AbortController only.

Link copied to clipboard

Create an instance of the AbortSignal.Factory, bound to the provided guest executor.

Link copied to clipboard
fun timeout(time: Long, unit: TimeUnit, exec: GuestExecutor): AbortSignal

Internal static method to create a new AbortSignal instance which is scheduled on the provided guest executor for an automatic expiration.