event
reactphp/async
The
event
function dispatches the given
event
to its listeners:
<?php event
(new
UserRegistered
(
$user
));