[Checkins] SVN: zc.async/trunk/src/zc/async/README.txt Make thread test code tighter.

Gary Poster gary at zope.com
Thu Aug 17 10:39:46 EDT 2006


Log message for revision 69603:
  Make thread test code tighter.
  

Changed:
  U   zc.async/trunk/src/zc/async/README.txt

-=-
Modified: zc.async/trunk/src/zc/async/README.txt
===================================================================
--- zc.async/trunk/src/zc/async/README.txt	2006-08-17 14:17:53 UTC (rev 69602)
+++ zc.async/trunk/src/zc/async/README.txt	2006-08-17 14:39:45 UTC (rev 69603)
@@ -428,12 +428,12 @@
     ...
     >>> p = dm.thread.put(zc.async.partial.Partial.bind(callWithProgressReport))
     >>> transaction.commit()
-    >>> ignore = time_flies(10); acquired = main_lock.acquire()
-    ... # get the reactor to kick for main call; then get the reactor to
-    ... # kick for progress report; then wait for lock release.
+    >>> ignore = time_flies(5); acquired = main_lock.acquire()
+    ... # get the reactor to kick for main call; then wait for lock release.
     do some work
     more work
     about half done
+    >>> ignore = time_flies(5) # get the reactor to kick for progress report
     >>> t = transaction.begin() # sync
     >>> p.annotations.get('zc.async.partial_txt.half_done')
     True



More information about the Checkins mailing list