X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=sidebyside;f=doc%2F8sync.texi;h=8dea9f3f63819dc0bd5a528b23eee8465e31e61d;hb=0d10b58e73e1ef034b2f1b47fdd31b4ff45d3ce3;hp=67eba86d284a1b1fdb855300ae826e4bf9c565d1;hpb=8bdfa5c8f81d4e46d57c367da23cd8ea676ad717;p=8sync.git diff --git a/doc/8sync.texi b/doc/8sync.texi index 67eba86..8dea9f3 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) @@ -1017,8 +1018,7 @@ Edit the respond section to see what channel it's really sending things to: @example -(define-method (handle-line (irc-bot ) message - speaker channel line emote?) +(define-method (handle-message (irc-bot ) message) ;; [... snip ...] (define (respond respond-line) (<- (actor-id irc-bot) 'send-line (pk 'channel channel) @@ -1047,8 +1047,7 @@ to looks like our own username that we respond back to the sender. (We can remove the pk now that we know what's going on.) @example -(define-method (handle-line (irc-bot ) message - speaker channel line emote?) +(define-method (handle-line (irc-bot ) message) ;; [... snip ...] (define (respond respond-line) (<- (actor-id irc-bot) 'send-line