mirror of
https://github.com/iio612/DEFENDER.git
synced 2026-02-13 19:24:23 +00:00
last changes for asyncio
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
"""This class should never be reloaded.
|
||||
"""
|
||||
import asyncio
|
||||
from logging import Logger
|
||||
from threading import Timer, Thread, RLock
|
||||
from asyncio.locks import Lock
|
||||
from socket import socket
|
||||
from typing import Any, Optional, TYPE_CHECKING
|
||||
from core.definition import MSModule, MAdmin
|
||||
@@ -17,9 +19,11 @@ class Settings:
|
||||
|
||||
RUNNING_TIMERS: list[Timer] = []
|
||||
RUNNING_THREADS: list[Thread] = []
|
||||
RUNNING_ASYNCTASKS: list[asyncio.Task] = []
|
||||
RUNNING_SOCKETS: list[socket] = []
|
||||
PERIODIC_FUNC: dict[str, Any] = {}
|
||||
LOCK: RLock = RLock()
|
||||
AILOCK: Lock = Lock()
|
||||
|
||||
CONSOLE: bool = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user