inhabitedtype / faraday

Serialization library built for speed and memory efficiency
Other
134 stars 20 forks source link

flush_with_reason #68

Closed dhouse-js closed 3 years ago

dhouse-js commented 3 years ago

Adds a new function to the interface, flush_with_reason : t -> ([ `Shift | `Drain ] -> unit) -> unit, which is like flush but it gives the callback information on why it is being called.