Module Lwt_sink.Sync_to_lwt

Convert a sync sink to an Lwt sink

Parameters

Signature

type t = S.t
val emit : t -> Message_templates.Log_event.t -> unit Lwt.t

Emit a log event to the sink

val flush : t -> unit Lwt.t

Flush any buffered output

val close : t -> unit Lwt.t

Close the sink and release resources