Skip to content

Instantly share code, notes, and snippets.

@ctoestreich
Last active June 17, 2016 15:08
Show Gist options
  • Save ctoestreich/22cce342d53c57e1a6f0934ad6f06b3a to your computer and use it in GitHub Desktop.
Save ctoestreich/22cce342d53c57e1a6f0934ad6f06b3a to your computer and use it in GitHub Desktop.
//Go get promotions async
Promise<Map<String, List<Promotion>> promisePromotions = task { getPromitions(...) }
//Get the map from the promise
Map<String, List<Promotion>> promotionMessages = promisePromotions.get()
//Get the list of promitions from the map
List<Promotion> promotionMessages = promotionMessages.get(mapKey)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment