package bimage-lwt

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

Source file bimage_lwt.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
open Bimage

module Filter = Filter.Make (struct
  type 'a io = 'a Lwt.t

  let bind = Lwt.bind

  let detach = Lwt_preemptive.detach

  let wrap = Lwt.wrap

  let wait (x : unit io) = Lwt_preemptive.run_in_main (fun () -> x)
end)
OCaml

Innovation. Community. Security.