agenda: Switch "yield" to "8yield" and export.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 28 Dec 2016 16:29:58 +0000 (10:29 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 28 Dec 2016 16:29:58 +0000 (10:29 -0600)
This avoids a name collision with an existing procedure.  Plus yield was
never exported, apparently.

* 8sync/agenda.scm (8yield): Renamed from yield.

8sync/agenda.scm

index e35cd8efe538cb38abd54acfb4614c07aa738250..0aaae2563e3ea4f9f14f3cf962161fc4625f3865 100644 (file)
@@ -49,7 +49,7 @@
             run-it wrap wrap-apply run run-at run-delay
 
             8sync
-            8sleep 8usleep
+            8sleep 8yield
             
             ;; used for introspecting the error, but a method for making
             ;; is not exposed
@@ -429,7 +429,7 @@ forge ahead in our current function!"
       (make-run-request (lambda () (kont #f)) (delayed-time secs))))))
 
 ;; Voluntarily yield execution
-(define (yield)  ; @@: should this be define-inlinable?
+(define (8yield)
   "Voluntarily yield execution to the scheduler."
   (8sync-abort-to-prompt
    (make-async-request