From 89dc22f9067cfbd1da5bd519686f9bcd1f18c744 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 4 Sep 2017 18:42:13 -0400 Subject: [PATCH] Update README.rst --- README.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index c44dc1e..fa65ed3 100644 --- a/README.rst +++ b/README.rst @@ -20,6 +20,7 @@ Basic Usage import background + @background.task def work(): # Do something expensive here. @@ -35,16 +36,16 @@ Advanced Usage .. code:: python + import time import background # Use 40 background threads. background.n = 40 - + @background.task def work(): - import time time.sleep(10) @background.callback