Module Message_templates_lwt.Lwt_sink

Lwt sink interface and utilities

Lwt sink interface - async sink signatures for Lwt

module type S = sig ... end

Lwt sink signature

module Sync_to_lwt (S : Message_templates.Sink.S) : S with type t = S.t

Convert a sync sink to an Lwt sink

type sink_fn = {
  1. emit_fn : Message_templates.Log_event.t -> unit Lwt.t;
  2. flush_fn : unit -> unit Lwt.t;
  3. close_fn : unit -> unit Lwt.t;
}

Composite Lwt sink for multiple sinks

val composite_sink : sink_fn list -> sink_fn

Create a composite sink from a list of sink functions