Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
The worker event is meant for use with Lwt_utils.worker
.
include EVENT with type t := t
include EVENT_DEFINITION with type t := t
Defines the identifier for the event. Names should be unique and are restricted to alphanumeric characters or ".@-_+=,~"
.
val pp : short:bool -> Stdlib.Format.formatter -> t -> unit
val encoding : t Data_encoding.t
val emit :
?section:Section.t ->
(unit -> t) ->
unit Tezos_error_monad.Error_monad.tzresult Lwt.t
Output an event of type t
, if no sinks are listening the function won't be applied.
val on_event :
string ->
[ `Ended | `Failed of string | `Started ] ->
unit Lwt.t
on_event msg status
emits an event of type t
and matches the signature required by Lwt_utils.worker
.