Skip to content

Instantly share code, notes, and snippets.

@gskachkov
Created November 21, 2019 11:45
Show Gist options
  • Save gskachkov/5385e65361bc648841f1db5f6a4451ae to your computer and use it in GitHub Desktop.
Save gskachkov/5385e65361bc648841f1db5f6a4451ae to your computer and use it in GitHub Desktop.
const resolve = async () => {
const result = await mySerbice.getData();
if (result === 'good') {
return result;
}
return mySerbice.getNewDate();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment