package eio
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Effect-based direct-style IO API for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
eio-1.2.tbz
sha256=3792e912bd8d494bb2e38f73081825e4d212b1970cf2c1f1b2966caa9fd6bc40
sha512=4a80dbcf8cf2663bdad0f2970871844f37bd293c56bd1ce602910e0a613754945f1f942719f9630906453be7c73c1732dc97526c6c90b0b36100d04fd5e871e4
doc/eio/Eio/Private/Debug/index.html
Module Private.DebugSource
Source
val traceln :
?__POS__:(string * int * int * int) ->
('a, Format.formatter, unit, unit) format4 ->
'aWrites trace logging using the current fiber's configured traceln function.
with_trace_prefix fmt fn runs fn () with a traceln that outputs fmt before each message.
The mutex used to prevent two domains writing to stderr at once.
This might be useful if you want to write to it directly yourself, e.g. for a log reporter.
Source
val default_traceln :
?__POS__:(string * int * int * int) ->
('a, Format.formatter, unit, unit) format4 ->
'adefault_traceln is a suitable default implementation for Eio.Std.traceln.
It writes output to stderr, prefixing each line with a "+". If __POS__ is given, it also displays the file and line number from that. It uses traceln_mutex so that only one domain's output is written at a time.
Source
type traceln = {traceln : 'a. ?__POS__:(string * int * int * int) -> ('a, Format.formatter, unit, unit) format4 -> 'a;
}Backends should use this for Eio.Stdenv.debug.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>