make pubsub publish events async #42

Signed-off-by: Valentin Zberea <valentin.zberea@gmail.com>