package ecaml

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

Module Defun.ReturnsSource

An Returns.t states the return type of a function and whether the function returns a value of that type directly or via a Deferred.t. An (a, a) Returns.t means that the function returns a directly. An (a, a Deferred.t) Returns.t means that the function returns a via an a Deferred.t.

Sourcetype (_, _) t =
  1. | Returns : 'a Ecaml_value.Value.Type.t -> ('a, 'a) t
  2. | Returns_deferred : 'a Ecaml_value.Value.Type.t -> ('a, 'a Async_kernel.Deferred.t) t
Sourceval sexp_of_t : ('a__007_ -> Sexplib0.Sexp.t) -> ('b__008_ -> Sexplib0.Sexp.t) -> ('a__007_, 'b__008_) t -> Sexplib0.Sexp.t
Sourceval return : ('a, 'b) t -> 'a -> 'b
Sourceval returns : ('a, 'b) Sync_or_async.t -> 'a Ecaml_value.Value.Type.t -> ('a, 'b) t
OCaml

Innovation. Community. Security.