package fiber

  1. Overview
  2. Docs

This module offers no safety protections. It is only needed for maximizing performance in certain situations

type 'a k
val suspend : ('a k -> unit) -> 'a t

suspend k call with the current continuation

val resume : 'a k -> 'a -> unit t

resume k a resume a suspended fiber with a. It is forbidden to call resume more than once on a a fiber.

OCaml

Innovation. Community. Security.