X-Git-Url: https://jxself.org/git/?p=8sync.git;a=blobdiff_plain;f=doc%2F8sync-new-manual.org;fp=doc%2F8sync-new-manual.org;h=5239b3bd664fd9ad40f1d2cc25e276a4149edae9;hp=ebbd13a9da880596e10181cc471dcc5c551ce399;hb=2785c244a09fc008488385b10053ef854fb27c34;hpb=063be529581b7004dae5ecb106bcf33729b9fef7 diff --git a/doc/8sync-new-manual.org b/doc/8sync-new-manual.org index ebbd13a..5239b3b 100644 --- a/doc/8sync-new-manual.org +++ b/doc/8sync-new-manual.org @@ -710,8 +710,8 @@ into a micromanager. "Pester direct report until they're done with their task." (display "manager> Are you done yet???\n") (let ((still-working - (msg-val (<-wait (manager-direct-report manager) - 'done-yet?)))) + (mbody-val (<-wait (manager-direct-report manager) + 'done-yet?)))) (if still-working (begin (display "manager> Harumph!\n") (8sleep 1) @@ -725,9 +725,10 @@ We've appended a micromanagement loop here... but what's going on? "<-wait", as it sounds, waits for a reply, and returns a reply message. In this case there's a value in the body of the message we want, -so we pull it out with msg-val. +so we pull it out with mbody-val. (It's possible for a remote actor to return multiple values, in which -case we'd want to use msg-receive, but that's a bit more complicated.) +case we'd want to use mbody-receive, but that's a bit more +complicated.) Of course, we need to update our worker accordingly as well. @@ -779,6 +780,15 @@ Ka-poof! ** COMMENT Websockets * Addendum +** Recommended .emacs additions + +In order for =mbody-receive= to indent properly, put this in your +.emacs: + +#+BEGIN_SRC emacs-lisp +(put 'mbody-receive 'scheme-indent-function 2) +#+END_SRC + ** 8sync and Fibers One other major library for asynchronous communication in Guile-land