You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
346 B
Python
11 lines
346 B
Python
2 years ago
|
from __future__ import annotations
|
||
|
from event_emitter_asyncio.EventEmitter import EventEmitter
|
||
|
|
||
|
class EventService(EventEmitter):
|
||
|
instance: EventService = None
|
||
|
|
||
|
@staticmethod
|
||
|
def create() -> EventService:
|
||
|
if EventService.instance is None:
|
||
|
EventService.instance = EventService()
|
||
|
return EventService.instance
|