from typing import Deque, Any, Optional
from fastapi_events import event_store
from fastapi_events.typing import Event


def dispatch(event_name: str, payload: Optional[Any]=None) ->None:
    q: Deque[Event] = event_store.get()
    q.append((event_name, payload))

c253e0f00baec925e47288474454481784e2ef18
<mask token>

<mask token>


def dispatch(event_name: str, payload: Optional[Any]=None) ->None:
    q: Deque[Event] = event_store.get()
    q.append((event_name, payload))

from typing import Deque, Any, Optional
from fastapi_events import event_store
from fastapi_events.typing import Event


def dispatch(event_name: str, payload: Optional[Any]=None) ->None:
    q: Deque[Event] = event_store.get()
    q.append((event_name, payload))
