-
Notifications
You must be signed in to change notification settings - Fork 639
Closed
Labels
api: pubsubIssues related to the Pub/Sub API.Issues related to the Pub/Sub API.
Description
Right now, to "create a topic", people jump immediately to createTopic -- which gives them back a topic, but then the second time they try to create a topic, it'll cause problems, right? What people typically want in their code is topic() with {autoCreate: true} ...
So... a couple options
- Remove / privatize
createTopic(why create a topic to not use it...?) - Document in
createTopicthat you probably wanttopic()- and update
topic()'s options to auto-create by default
- and update
Thoughts?
Metadata
Metadata
Assignees
Labels
api: pubsubIssues related to the Pub/Sub API.Issues related to the Pub/Sub API.