Enabled choice between sync and async modes for PubSub. Defaults to async