package hvsock

  1. Overview
  2. Docs

Call a blocking ('a -> 'b) function in a ('a -> 'b Lwt.t) context

Parameters

module Main : MAIN

Signature

type ('request, 'response) t

A function from 'request to 'response

val create : ('request -> 'response) -> ('request, 'response) t
val destroy : ('request, 'response) t -> unit
val fn : ('request, 'response) t -> 'request -> 'response Lwt.t

Apply the function

OCaml

Innovation. Community. Security.