diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -1,10 +1,11 @@ # Phabricator QA Mercurial Test Repository -## Using arc +## Using arc or not -The followings steps will configure arcanist for use in dev, stage, and production environments: +The followings steps will configure arcanist for use in dev, stage, and +production environments: 1. Clone the following repositories to the same directory on your machine: ```bash $ mkdir ~/phacility; cd ~/phacility diff --git a/somescript.js b/somescript.js new file mode 100644 --- /dev/null +++ b/somescript.js @@ -0,0 +1,17 @@ +function resolveAfter3Seconds() { + return new Promise(resolve => { + setTimeout(() => { + resolve('resolved'); + }, 3000); + }); +} + +async function asyncCall() { + console.log('calling'); + var result = await resolveAfter2Seconds(); + console.log(result); + // expected output: "resolved" +} + +asyncCall(); +