emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/async d1273c8 13/60: Using sleep-for instead of sit-for


From: Stefan Monnier
Subject: [elpa] externals/async d1273c8 13/60: Using sleep-for instead of sit-for in async-wait prevent infloop (#71).
Date: Tue, 8 Oct 2019 10:11:28 -0400 (EDT)

branch: externals/async
commit d1273c8b2a538f75cb5f78a3df4292d5e85cbd59
Author: Thierry Volpiatto <address@hidden>
Commit: Thierry Volpiatto <address@hidden>

    Using sleep-for instead of sit-for in async-wait prevent infloop (#71).
    
    * async.el (async-wait): Do it.
---
 async.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/async.el b/async.el
index c38c32e..30476e2 100644
--- a/async.el
+++ b/async.el
@@ -183,7 +183,7 @@ would result from a call to `async-get' on that FUTURE."
 (defun async-wait (future)
   "Wait for FUTURE to become ready."
   (while (not (async-ready future))
-    (sit-for 0.05)))
+    (sleep-for 0.05)))
 
 (defun async-get (future)
   "Get the value from process FUTURE when it is ready.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]