Alcotest_engine.FormattersAlcotest uses Format.std_formatter and Format.err_formatter formatters. However, in a parallel context (OCaml 5 and domains), using these values in parallel can lead to data-races, since these values are not domains-safe. As such, Alcotest offers a way to create your own formatter equivalent in behavior to Format.std_formatter and Format.err_formatter (i.e. they write well on 1 and 2) but they can be used without risk even if another library (such as Logs) uses Format.std_formatter and/or Format.err_formatter and is used in parallel.
type stdout = private Format.formattertype stderr = private Format.formatterval set_stdout : stdout -> unitval set_stderr : stderr -> unitval get_stdout : unit -> stdoutval get_stderr : unit -> stderrval ocaml_stdout : stdoutval ocaml_stderr : stderrval make_stdout : unit -> stdoutval make_stderr : unit -> stderrval pr : ('a, Format.formatter, unit) format -> 'aval epr : ('a, Format.formatter, unit) format -> 'a