package brr

  1. Overview
  2. Docs
Browser programming toolkit for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

brr-0.0.9.tbz
sha512=45cdf73c6a23c8fc4609a32ae2196d4790e5bdba34ca0b784bff9c0b70dab233eb336f1c11dc3002451042ff4cf25b643098ad0d011f14c3d6175842113bed21

doc/brr/Brr/Abort/index.html

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.