package ocaml-solo5-cross-aarch64
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=4d07934aea2d32b77ba1b8bb062c6594
sha512=2ec008da088f7998d024b790679605813f1954de36b999031db0b003706e67f3f13554e93fa07be00f26633ea27c2b2f9f987e8b08f85c63f956bfbc306bd620
doc/stdlib/Stdlib/Effect/Shallow/index.html
Module Effect.ShallowSource
('a,'b) continuation is a delimited continuation that expects a 'a value and returns a 'b value.
fiber f constructs a continuation that runs the computation f.
type ('a, 'b) handler = {retc : 'a -> 'b;exnc : exn -> 'b;effc : 'c. 'c t -> (('c, 'a) continuation -> 'b) option;
}('a,'b) handler is a handler record with three fields -- retc is the value handler, exnc handles exceptions, and effc handles the effects performed by the computation enclosed by the handler.
continue_with k v h resumes the continuation k with value v with the handler h.
discontinue_with k e h resumes the continuation k by raising the exception e with the handler h.
val discontinue_with_backtrace :
('a, 'b) continuation ->
exn ->
Printexc.raw_backtrace ->
('b, 'c) handler ->
'cdiscontinue_with k e bt h resumes the continuation k by raising the exception e with the handler h using the raw backtrace bt as the origin of the exception.
get_callstack c n returns a description of the top of the call stack on the continuation c, with at most n entries.