from typing import Dict
import asyncio


def create_events() -> Dict[str, asyncio.Event]:
    """
    Create and store :class:`asyncio.Event` objects for triggering an application
    restart or shutdown.

    :return: a `dict` with :class:`~asyncio.Event` objects for restart and shutdown

    """
    return {"restart": asyncio.Event(), "shutdown": asyncio.Event()}