Commits

Anonymous committed e2d1302

Updated doc for non-blocking connect.

  • Participants
  • Parent commits c004063
  • Tags 0.9.2b

Comments (0)

Files changed (1)

File docs/diesel.rst

 
     def do_echos():
         client = EchoClient()
-        client.connect('localhost', 8000)
+        yield client.connect('localhost', 8000)
         t = time.time()
         for x in xrange(5000):
             msg = "hello, world #%s!" % x
     def req_loop():
         host = 'www.boomplex.com'
         client = HttpClient()
-        client.connect(host, 80) 
+        yield client.connect(host, 80) 
         heads = HttpHeaders()
         heads.set('Host', host)
         print (yield client.request('GET', '/', heads))