Ocsigen

Js_of_ocaml

Home

Doc

Blog

Eliom

Js_of_ocaml

Server

Lwt

Tyxml

Start

  • Home
  • Doc
  • Eliom
  • Js_of_ocaml
  • Server
  • Lwt
  • Tyxml
  • Toolkit
  • Start
  • Ocsipersist
  • ReactiveData
  • i18n
  • Wodoc
  • Other projects
  • Research papers
  • Who does Ocsigen?
  • Contributing
  • Blog
  • Installation
  • Source code

On this page

Getting Started

  • Overview
  • Installation
  • Quick Start

Programming Guide

  • JavaScript interop
  • PPX syntax extension
  • JSON derivation
  • Export OCaml code to JavaScript
  • Error handling
  • API

Lwt Support

  • Lwt support
  • API

Compiler

  • Command line options
  • Compilation modes
  • JavaScript primitives
  • Tailcall optimization
  • Effect handlers
  • Runtime representation
  • Targeting older browsers

Wasm_of_ocaml

  • Overview
  • Writing Wasm primitives

How-to Guides

  • Build a toplevel or use Dynlink
  • Debug a program
  • Performance
  • Contribute

Try it

  • OCaml toplevel
  • Examples and projects

On this page

Getting Started

  • Overview
  • Installation
  • Quick Start

Programming Guide

  • JavaScript interop
  • PPX syntax extension
  • JSON derivation
  • Export OCaml code to JavaScript
  • Error handling
  • API

Lwt Support

  • Lwt support
  • API

Compiler

  • Command line options
  • Compilation modes
  • JavaScript primitives
  • Tailcall optimization
  • Effect handlers
  • Runtime representation
  • Targeting older browsers

Wasm_of_ocaml

  • Overview
  • Writing Wasm primitives

How-to Guides

  • Build a toplevel or use Dynlink
  • Debug a program
  • Performance
  • Contribute

Try it

  • OCaml toplevel
  • Examples and projects

Module Js_of_ocaml.Abort

AbortController / AbortSignal.

A general-purpose cancellation primitive used by Fetch, event listener registration, Streams, and custom asynchronous code.

  • see https://developer.mozilla.org/en-US/docs/Web/API/AbortController
  • see https://dom.spec.whatwg.org/#interface-abortcontroller
class type signal = object ... end
class type controller = object ... end
val controller : controller Js.t Js.constr