package netsnmp

  1. Overview
  2. Docs
An interface to the Net-SNMP client library

Install

Dune Dependency

Authors

Maintainers

Sources

netsnmp-v0.14.0.tar.gz
sha256=91a33e407dd1f5dc42ce5aaa5a65e0d65e19b454a129603a89c31d1461abe68f
md5=ae0c0a55bf466f9eca96543f4f2578e4

doc/src/netsnmp.async/netsnmp_io_impl.ml.html

Source file netsnmp_io_impl.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
open Async

type 'a t = 'a Deferred.t

let return = Deferred.return
let bind = Deferred.bind
let map  = Deferred.map
let (>>=) = Deferred.(>>=)
let (>>|) = Deferred.(>>|)

let sequencer = Throttle.Sequencer.create ~continue_on_error:true ()
let wrap f v = Throttle.enqueue sequencer (fun () -> In_thread.run (fun () -> f v))

let wrap_mt f v = In_thread.run (fun () -> f v)

let gc_finalise f t = Gc.add_finalizer_exn t (fun t -> f t |> don't_wait_for)
OCaml

Innovation. Community. Security.