Skip to content

Instantly share code, notes, and snippets.

@davidgilbertson
Last active May 4, 2019 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidgilbertson/7b4e0263594d6dfed9535ad64ee333f3 to your computer and use it in GitHub Desktop.
Save davidgilbertson/7b4e0263594d6dfed9535ad64ee333f3 to your computer and use it in GitHub Desktop.
const rawResults = await goGetResults();
const results = parseSortAndFilterResults(rawResults);
if (status === 'READY') {
render(results);
} else {
messages.on('ready', data => render(data.results));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment