def publish_event(event_t, data=None, extra_channels=None, wait=None):
event = Event(event_t, data)<EOL>pubsub.publish("<STR_LIT>", event)<EOL>for channel_name in extra_channels or []:<EOL><INDENT>pubsub.publish(channel_name, event)<EOL><DEDENT>if wait is not None:<EOL><INDENT>channel = pubsub.subscribe(wait)<EOL>channel.listen(wait)<EOL><DEDENT>
Publish an event ot any subscribers.

:param event_t:  event type
:param data:     event data
:param extra_channels:
:param wait:
:return: