Module Printexc.SafeSource
Submodule containing non-backwards-compatible functions which enforce thread safety via modes.
Like register_printer, but is safe to use in the presence of multiple domains.
The provided closure must be portable as exception printers may be called from any domain, not just the one that it's registered on.
Source
val set_uncaught_exception_handler :
(exn -> Stdlib.Printexc.raw_backtrace -> unit) @ portable ->
unitLike set_uncaught_exception_handler, but is safe to use in the presence of multiple domains.
The provided closure must be portable as exception handlers may be called from any domain, not just the one that it's registered on.