package js_of_ocaml-compiler

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Jsoo_runtime.PromiseSource

Low-level wrap/unwrap helpers for the Js_of_ocaml.Promise binding. Implemented in runtime/{js,wasm}/promise.{js,wat}. Wrapping is conditional on the value being thenable, so non-thenable values are passed through unchanged.

Sourceval wrap : 'a -> Js.t
Sourceval unwrap : Js.t -> 'a