package picos

  1. Overview
  2. Docs
Pico scheduler framework

Install

Dune Dependency

Authors

Maintainers

Sources

picos-0.1.0.tbz
sha256=0f2dcc67ddd127c68f388f2c36a8725a15723e6aeba7d1ddfcf4e016b54a4674
sha512=bee2a99458a451be285e2f13cc3a9deda8eed4e118bcdfc51c256d2da5bae92eec3386c318fe42dcf451421543b519dc064967158b3f417c9b7b44ce97c5fb75

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.