creating delayed reactor
This commit is contained in:
@@ -1036,7 +1036,7 @@
|
||||
(set! value val)
|
||||
(set! value-set-at (current-milliseconds))
|
||||
(when (eq? wait-thread #f)
|
||||
(thread (λ ()
|
||||
(set! wait-thread (thread (λ ()
|
||||
(let loop ((vsa value-set-at))
|
||||
(sleep seconds)
|
||||
(let ((cms (current-milliseconds)))
|
||||
@@ -1045,7 +1045,7 @@
|
||||
(set! wait-thread #f)
|
||||
(value-callback value))
|
||||
(loop)))))))
|
||||
)))
|
||||
))))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Quitting and waiting
|
||||
|
||||
Reference in New Issue
Block a user