examples/example.js
function doSomethingUninteresting(data) {
  // simulate latency
  var wait = randomWait(1000);
  return Promise.delay(wait).then(
    () => `It took me ${wait} milliseconds to notice you gave me ${data}.`
  );
}
function doSomethingUninteresting(data) {
  // simulate latency
  var wait = randomWait(1000);
  return Promise.delay(wait).then(
    () => `It took me ${wait} milliseconds to notice you gave me ${data}.`
  );
}
function doSomethingUninteresting ( data ) { // simulate latency var wait = randomWait ( 1000 ) ; return Promise . delay ( wait ) . then ( ( ) => ` ${ wait } ${ data } ` ) ; }
Waits a random period of time before returning a dumb message to the callback given.
Waits a random period of time before returning a dumb message to the callback given .