Merge pull request #30 from IKoshelev/patch-1

Update ch. 0, "Background information", JS sample
This commit is contained in:
Carl Fredrik Samson
2020-12-25 22:01:17 +01:00
committed by GitHub

View File

@@ -522,8 +522,8 @@ function timer(ms) {
}
timer(200)
.then(() => return timer(100))
.then(() => return timer(50))
.then(() => timer(100))
.then(() => timer(50))
.then(() => console.log("I'm the last one"));
```