Module Biocaml_transform.Printer_queue (.ml)

module Printer_queue: sig .. end
A generic buffering printer.

type 'a t 
val make : ?buffer:[ `clear of int | `reset of int ] ->
to_string:('a -> string) -> unit -> 'a t
Create a printer-queue with a to_string function. The buffer argument tells whether to use Buffer.clear or Buffer.reset after flushing the buffer.
val feed : 'a t -> 'a -> unit
Enqueue something in the printer.
val flush : 'a t -> string
Get the current transformed content.
val is_empty : 'a t -> bool
Check if the printer-queue is empty.