def is_callback(func: Callable[(..., Any)]) -> bool:
    'Check if function is safe to be called in the event loop.'
    return (getattr(func, '_edge_callback', False) is True)
Check if function is safe to be called in the event loop.
def is_callback(func: Callable[(..., Any)]) -> bool:
    
    return (getattr(func, '_edge_callback', False) is True)