package fiber

  1. Overview
  2. Docs

Module Fiber.ExpertSource

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

Sourcetype 'a k
Sourceval suspend : ('a k -> unit) -> 'a t

suspend k call with the current continuation

Sourceval 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.