From 92f55bfe844b57d41dae24e530ca537ee4c009a7 Mon Sep 17 00:00:00 2001 From: c-cube Date: Tue, 17 Sep 2024 15:21:46 +0000 Subject: [PATCH] deploy: f8b8f00a14083f708afbd78e02a80e1a303ae713 --- trace/Trace_subscriber/Callbacks/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trace/Trace_subscriber/Callbacks/index.html b/trace/Trace_subscriber/Callbacks/index.html index 31397f0..9a9bf72 100644 --- a/trace/Trace_subscriber/Callbacks/index.html +++ b/trace/Trace_subscriber/Callbacks/index.html @@ -6,5 +6,5 @@ let on_init (state:st) ~time_ns : unit = … - (* other customize callbacks *) + (* … other custom callbacks … *) end
module type S = sig ... end

First class module signature for callbacks

type 'st t = (module S with type st = 'st)

Callbacks for a subscriber. There is one callback per event in Trace. The type 'st is the state that is passed to every single callback.

module Dummy : sig ... end

Dummy callbacks. It can be useful to reuse some of these functions in a real subscriber that doesn't want to handle all events, but only some of them.

val dummy : unit -> 'st t

Dummy callbacks, ignores all events.

\ No newline at end of file