Signals: Split signal handler between sync and async
Asyncio requires a closure of the event loop while sync can use SystemExit to kill the program. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
b4cda78bcc
commit
d5e4285346
2 changed files with 13 additions and 6 deletions
1
main.py
1
main.py
|
|
@ -5,6 +5,7 @@ import os
|
|||
import pathlib
|
||||
import platform
|
||||
import signal
|
||||
import time
|
||||
from loguru import logger
|
||||
from typing import Optional
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue