jon.recoil.org

Module Brr.Abort

Aborting browser activities.

This mecanism provides a way to abort futures with a Jv.Error.t named AbortError (`Abort_error in Jv.Error.enum).

module Signal : sig ... end

Abort signals.

type t

The type for AbortController objects.

val controller : unit -> Brr.Abort.t

controller () is a new abort controller.

signal c is the signal associated to abort controller c.

val abort : Brr.Abort.t -> unit

abort c aborts the signal of c and informs its observers the associated activity is to be aborted.

val to_jv : Brr.Abort.t -> Jv.jv
val of_jv : Jv.jv -> Brr.Abort.t