forked from platypush/platypush
Fabio Manganiello
61ea3d79e4
More common logic has been extracted and all the methods and classes have been documented and black'd.
12 lines
321 B
Python
12 lines
321 B
Python
from dataclasses import dataclass, field
|
|
import threading
|
|
|
|
|
|
@dataclass
|
|
class ComponentContext:
|
|
"""
|
|
This class is used to store the context of a component type.
|
|
"""
|
|
|
|
init_lock: threading.RLock = field(default_factory=threading.RLock)
|
|
refreshed: threading.Event = field(default_factory=threading.Event)
|