Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-02 19:40:26 -04:00
parent dfed1d5cfb
commit e1c1254680
+2
View File
@@ -36,6 +36,7 @@ Advanced Usage
# Use 40 background threads.
background.n = 40
@background.task
def work():
import time
@@ -45,6 +46,7 @@ Advanced Usage
def work_callback(future):
print(future)
for _ in range(100):
work()