def raise_event(e):
    """Add event to front of queue. If argument == "@this", re-raise current event."""
    return {
        "type": "raise",
        "exec": lambda context, event: event if e == "@this" else e,
    }