From 279f17ac0e1b3d019c2b294098e834d249376686 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Tue, 4 Jun 2019 20:49:16 -0400 Subject: Update chickadee manual. --- manuals/chickadee/Scripts.html | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) (limited to 'manuals/chickadee/Scripts.html') diff --git a/manuals/chickadee/Scripts.html b/manuals/chickadee/Scripts.html index c9939f5..b8472dc 100644 --- a/manuals/chickadee/Scripts.html +++ b/manuals/chickadee/Scripts.html @@ -1,6 +1,6 @@ - @@ -141,59 +143,54 @@ script is returned that can be used to cancel it when desired.
-
Procedure: spawn-script thunk
+
Procedure: spawn-script thunk

Apply thunk as a script and return a handle to it.

-
Syntax: script body
+
Syntax: script body …

Evaluate body as a script and return a handle to it.

-
Procedure: script? obj
+
Procedure: script? obj

Return #t if obj is a script handle.

-
Procedure: script-cancelled? obj
+
Procedure: script-cancelled? obj

Return #t if obj has been cancelled.

-
Procedure: script-running? obj
+
Procedure: script-running? obj

Return #t if obj has not yet terminated or been cancelled.

-
Procedure: script-complete? obj
+
Procedure: script-complete? obj

Return #t if obj has terminated.

-
Procedure: cancel-script co
+
Procedure: cancel-script co

Prevent further execution of the script co.

-
Procedure: yield handler
+
Procedure: yield handler

Suspend the current script and pass its continuation to the procedure handler.

-
Procedure: sleep duration
+
Procedure: sleep duration

Wait duration before resuming the current script.

-
Procedure: channel-get channel
-

Wait for a message from channel. -

- -
-
Syntax: forever body
+
Syntax: forever body …

Evaluate body in an endless loop.

-- cgit v1.2.3