From de6dc970e839c1b561e07fb70793bceb68ed7a2b Mon Sep 17 00:00:00 2001 From: Pablo Muguerza Date: Sat, 1 Jun 2019 12:04:55 -0300 Subject: [PATCH] Bug fix on the "Determinism" example The use of time.sleep() results in a sequential execution of the echo() tasks in the gevent Pool. Fixed using gevent.sleep() instead of time.sleep() --- tutorial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorial.md b/tutorial.md index bcf78f9..f9eb06e 100644 --- a/tutorial.md +++ b/tutorial.md @@ -251,10 +251,10 @@ multiprocessing pool and compare its results to the one of a gevent pool.
 
-import time
+import gevent
 
 def echo(i):
-    time.sleep(0.001)
+    gevent.sleep(0.001)
     return i
 
 # Non Deterministic Process Pool