mirror of https://github.com/rq/rq.git
Add comment to the README.
This commit is contained in:
parent
f3890c85a0
commit
6b075f6cb7
|
@ -21,6 +21,7 @@ your typically lengthy or blocking function:
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
def count_words_at_url(url):
|
def count_words_at_url(url):
|
||||||
|
"""Just an example function that's called async."""
|
||||||
resp = requests.get(url)
|
resp = requests.get(url)
|
||||||
return len(resp.text.split())
|
return len(resp.text.split())
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue