Module Brr.AbortSource

Aborting browser activities.

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

Sourcemodule Signal : sig ... end

Abort signals.

Sourcetype t

The type for AbortController objects.

Sourceval controller : unit -> t

controller () is a new abort controller.

Sourceval signal : t -> Signal.t

signal c is the signal associated to abort controller c.

Sourceval abort : t -> unit

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