From 60899603a4c3a71e2561af4081d2f96cf1ae6e46 Mon Sep 17 00:00:00 2001 From: githejie Date: Fri, 22 Nov 2024 14:29:36 +0800 Subject: [PATCH] Fix example issue of zmq_timers.adoc --- doc/zmq_timers.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/zmq_timers.adoc b/doc/zmq_timers.adoc index 0a88a9dc..b51a6564 100644 --- a/doc/zmq_timers.adoc +++ b/doc/zmq_timers.adoc @@ -136,6 +136,10 @@ _timer_id_ did not exist or was already cancelled. // Wait until the end rc = msleep (zmq_timers_timeout (timers)); assert (rc == 0); + + // The handler will be executed + rc = zmq_timers_execute (timers); + assert (rc == 0); assert (timer_invoked); rc = zmq_timers_destroy (&timers);