def event(name, priority=128):
 def decorator(func):
  add_event_handler(name, func, priority)
  return func
 return decorator

def event ( name , priority = 128 ) : def decorator ( func ) : add_event_handler ( name , func , priority ) return func return decorator
watch salts event bus and block until the given tag is matched .