-
-
Notifications
You must be signed in to change notification settings - Fork 60
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request
Description
on start and on shutdown hooks with async and sync support is very useful when using CLI tools to do start and cleanup things.
from socketify import App
app = App()
@app.on_start
def on_start():
pass
@app.on_shutdown
def on_shutdown():
pass- Add start hook
- Add shutdown hook
- Add CLI support
- Add Documentation
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request