package carton
Implementation of PACKv2 file in OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
carton-carton-v0.1.0.tbz
sha256=2fcf72f1039da2aea64c6da3f67f7110f1b2fa27b0a5c433f2a243fd9a4e02e8
sha512=d60b0cb52eea1362cfb6457fad3d0a544d8ae1d69568255d1a685343973222695e8360d46833780dac69c196b05f03260fe2ea3d270e5021cf596d47a00f4c6d
doc/src/carton/sigs.ml.html
Source file sigs.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
module type FUNCTOR = sig type +'a t end type (+'a, 's) io type 's scheduler = { bind : 'a 'b. ('a, 's) io -> ('a -> ('b, 's) io) -> ('b, 's) io; return : 'a. 'a -> ('a, 's) io; } module type SCHEDULER = sig type +'a s type t external inj : 'a s -> ('a, t) io = "%identity" external prj : ('a, t) io -> 'a s = "%identity" end module type MUTEX = sig type +'a fiber type t val create : unit -> t val lock : t -> unit fiber val unlock : t -> unit end module type FUTURE = sig type +'a fiber type 'a t val wait : 'a t -> 'a fiber val peek : 'a t -> 'a option end module type CONDITION = sig type +'a fiber type mutex type t val create : unit -> t val wait : t -> mutex -> unit fiber val signal : t -> unit val broadcast : t -> unit end module type IO = sig type +'a t module Future : FUTURE with type 'a fiber = 'a t module Mutex : MUTEX with type 'a fiber = 'a t module Condition : CONDITION with type 'a fiber = 'a t and type mutex = Mutex.t val bind : 'a t -> ('a -> 'b t) -> 'b t val return : 'a -> 'a t val nfork_map : 'a list -> f:('a -> 'b t) -> 'b Future.t list t val all_unit : unit t list -> unit t end module Make (T : FUNCTOR) : SCHEDULER with type 'a s = 'a T.t = struct type 'a s = 'a T.t type t external inj : 'a -> 'b = "%identity" external prj : 'a -> 'b = "%identity" end module type UID = sig type t type ctx val empty : ctx val get : ctx -> t val feed : ctx -> ?off:int -> ?len:int -> Bigstringaf.t -> ctx val equal : t -> t -> bool val compare : t -> t -> int val length : int val of_raw_string : string -> t val to_raw_string : t -> string val pp : t Fmt.t val null : t end type kind = [ `A | `B | `C | `D ] let _max_depth = 60
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>