diff options
Diffstat (limited to 'chickadee/scripting/channel.scm')
-rw-r--r-- | chickadee/scripting/channel.scm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chickadee/scripting/channel.scm b/chickadee/scripting/channel.scm index 0c78ffa..9402636 100644 --- a/chickadee/scripting/channel.scm +++ b/chickadee/scripting/channel.scm @@ -22,7 +22,7 @@ #:use-module (srfi srfi-9 gnu) #:use-module (srfi srfi-11) #:use-module (chickadee queue) - #:use-module (chickadee scripting coroutine) + #:use-module (chickadee scripting script) #:export (make-channel channel? channel-get @@ -58,16 +58,16 @@ (put-cont))))))) (define (channel-get channel) - "Retrieve a value from CHANNEL. The current coroutine suspends -until a value is available." + "Retrieve a value from CHANNEL. The current script suspends until a +value is available." (yield (lambda (cont) (enqueue! (channel-get-queue channel) cont) (maybe-deliver channel)))) (define (channel-put channel data) - "Send DATA to CHANNEL. The current coroutine suspends until another -coroutine is available to retrieve the value." + "Send DATA to CHANNEL. The current script suspends until another +script is available to retrieve the value." (yield (lambda (cont) (enqueue! (channel-put-queue channel) (cons data cont)) |