diff --git a/docs/recipes.rst b/docs/recipes.rst index 0d612b6b1..0965d508a 100755 --- a/docs/recipes.rst +++ b/docs/recipes.rst @@ -168,15 +168,15 @@ Several "push" mechanisms like XHR multipart need the ability to write response from gevent import monkey; monkey.patch_all() - import time + import gevent from bottle import route, run @route('/stream') def stream(): yield 'START' - time.sleep(3) + gevent.sleep(3) yield 'MIDDLE' - time.sleep(5) + gevent.sleep(5) yield 'END' run(host='0.0.0.0', port=8080, server='gevent')