package picos

  1. Overview
  2. Docs
Pico scheduler interface

Install

Dune Dependency

Authors

Maintainers

Sources

picos-0.4.0.tbz
sha256=343a8b4759239ca0c107145b8e2cc94c14625fecc0b0887d3c40a9ab7537b8da
sha512=db22b0a5b3adc603c0e815c9011c779f892b9ace76be018b2198d3e24a7d96727c999701025fe5a5fd07d0b452cb7286fc50c939aba0e4dce809941e9ebc12a6

doc/picos.exn_bt/Picos_exn_bt/index.html

Module Picos_exn_btSource

Wrapper for exceptions with backtraces.

Sourcetype t = {
  1. exn : exn;
  2. bt : Printexc.raw_backtrace;
}

An exception and a backtrace.

Sourceval get : exn -> t

get exn is equivalent to { exn; bt = Printexc.get_raw_backtrace () }.

Sourceval get_callstack : int -> exn -> t

get_callstack n exn is equivalent to { exn; bt = Printexc.get_callstack n }.

Note that Printexc.get_callstack 0 effectively returns a constant value and this function is optimized to take that into account.

Sourceval raise : t -> 'a

raise exn_bt is equivalent to Printexc.raise_with_backtrace exn_bt.exn exn_bt.bt.

Sourceval discontinue : ('a, 'b) Effect.Deep.continuation -> t -> 'b

discontinue k exn_bt is equivalent to Effect.Deep.discontinue_with_backtrace k exn_bt.exn exn_bt.bt.

Sourceval discontinue_with : ('a, 'b) Effect.Shallow.continuation -> t -> ('b, 'c) Effect.Shallow.handler -> 'c

discontinue_with k exn_bt h is equivalent to Effect.Shallow.discontinue_with_backtrace k exn_bt.exn exn_bt.bt h.

OCaml

Innovation. Community. Security.