Merge pull request #8 from ned2/master

print result in callback example
This commit is contained in:
Parth Shandilya
2020-12-29 11:09:40 +01:00
committed by GitHub
+2 -1
View File
@@ -47,10 +47,11 @@ Advanced Usage
@background.task
def work():
time.sleep(10)
return "Done!"
@background.callback
def work_callback(future):
print(future)
print(future.result())
for _ in range(100):