package async_kernel

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

Module Job_or_event.MatchSource

Idiomatic usage of Match is:

  let job_or_event = ... in
  let open Job_or_event.Match in
  let K k = kind job_or_event in
  match k, project k job_or_event with
  | Event , event -> ... use event ...
  | Job   , job   -> ... use job ...

Idiomatic usage of Match is:

  let job_or_event = ... in
  let open Job_or_event.Match in
  let K k = kind job_or_event in
  match k, project k job_or_event with
  | Event , event -> ... use event ...
  | Job   , job   -> ... use job ...
Sourcetype _ kind =
  1. | Event : Async_kernel__.Types.Event.t kind
  2. | Job : (Async_kernel__.Types.Execution_context.t, Obj.t -> unit, Obj.t) Tuple_pool.Slots.t3 Tuple_pool.Pointer.t kind
Sourcetype packed =
  1. | K : _ kind -> packed
Sourceval kind : Async_kernel__.Types.Job_or_event.t -> packed
Sourceval project : 'a kind -> Async_kernel__.Types.Job_or_event.t -> 'a
OCaml

Innovation. Community. Security.