register

abstract fun register(onAbort: () -> Unit): AbortSignal.AbortRegistration(source)

Register a callback that fires exactly once on abort. If already aborted, fires synchronously. Returns a handle to deregister.

Since

0.3.0-beta01