timeout

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.

Return

A new empty instance of AbortSignal which has already been aborted.