Skip to content

Instantly share code, notes, and snippets.

@samzhao
Last active June 30, 2018 03:59
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 samzhao/ab0008e2a51dde965f0819a2bbbeade5 to your computer and use it in GitHub Desktop.
Save samzhao/ab0008e2a51dde965f0819a2bbbeade5 to your computer and use it in GitHub Desktop.
Usage of delayedMap helper
const toListItem = async item => {
const { thing } = await sendRequest();
return thing;
};
const delayTime = 100;
const items = delayedMap(listOfStuff, toListItem, delayTime);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment