Skip to content

Commit 93370c7

Browse files
authored
Register greet function with the worker (#169)
1 parent 1eec4a7 commit 93370c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ from docket import Docket, Worker
3333

3434
async with Docket() as docket:
3535
async with Worker(docket) as worker:
36+
worker.register(greet)
3637
await worker.run_until_finished()
3738
```
3839

0 commit comments

Comments
 (0)