From c344305a29e610685dd2c2746bb495295f1696ef Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Thu, 18 Apr 2019 07:10:41 +0200 Subject: [PATCH] doc: Fix initial sleeper. * doc/8sync.texi (Writing our own actors): Add missing slot to initial sleeper example. --- doc/8sync.texi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/8sync.texi b/doc/8sync.texi index 67eba86..7412ea1 100644 --- a/doc/8sync.texi +++ b/doc/8sync.texi @@ -441,7 +441,8 @@ How about an actor that start sleeping, and keeps sleeping? (define-class () (actions #:allocation #:each-subclass #:init-thunk (build-actions - (*init* sleeper-loop)))) + (*init* sleeper-loop))) + (sleep-secs #:init-value 1 #:getter sleeper-sleep-secs)) (define (sleeper-loop actor message) (while (actor-alive? actor) -- 2.31.1