package async_kernel

  1. Overview
  2. Docs
Monadic concurrency library

Install

Dune Dependency

Authors

Maintainers

Sources

async_kernel-v0.16.0.tar.gz
sha256=0eda59386235e967698834d71cb8924d7b466bc4fcbf26ae72797ad05ca6f8a9

doc/src/async_kernel/job_pool.ml.html

Source file job_pool.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
open! Core
open! Import
open Pool

let dummy_e = Execution_context.main
let dummy_f : Obj.t -> unit = ignore
let dummy_a : Obj.t = Obj.repr ()

type slots = (Execution_context.t, Obj.t -> unit, (Obj.t[@sexp.opaque])) Slots.t3
[@@deriving sexp_of]

type t = slots Pool.t [@@deriving sexp_of]

let invariant t = Pool.invariant ignore t
let create () = create Slots.t3 ~capacity:1 ~dummy:(dummy_e, dummy_f, dummy_a)
OCaml

Innovation. Community. Security.