feat: Added docs via MkDocs
This commit is contained in:
15
docs/defaultEvents/onExit.md
Normal file
15
docs/defaultEvents/onExit.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# `event` onExit
|
||||
This event is triggered when server is going to shut down.
|
||||
You can use it, to save some data before closing up, or do something else.
|
||||
|
||||
## Parameters
|
||||
No parameters.
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
|
||||
@g2o.event('onExit')
|
||||
def onExitEvt(**kwargs):
|
||||
print('Bye')
|
||||
```
|
||||
Reference in New Issue
Block a user