To get a set of Ids from a list of Contacts for example, I could:
- Query for the List of sObjects
- Create a map from my list using the constructor
- Use the map.KeySet() method to get my set.
Does anyone know of a more efficient design pattern?
I ultimately want a set to pass off to an @future method.
I feel there's a sentiment among the SFDC developer community to stop using @future in favor of Queueable as well.
– kbentsen May 18 '15 at 20:25