Compared to regular formatting function, the main difference is that printing statements will now return promises instead of blocking.
Returns a promise that prints on the standard output. Similar to
Returns a promise that prints on the standard error. Similar to
make_stream () returns a formatter and a stream of all the writing order given on that stream.
of_channel oc creates a formatter that writes to the channel
make_formatter ~commit ~fmt creates a new lwt formatter based on the
commit function will be called by the printing functions to update the underlying channel.
get_formatter fmt returns the underlying
Stdlib.Format.formatter. To access the underlying formatter during printing, it is recommended to use
flush fmt flushes the formatter (as with
Stdlib.Format.pp_print_flush) and executes all the printing action on the underlying channel.
Low level functions
write_order oc o applies the order
o on the channel