Skip to content

Commit 5e3a33a

Browse files
committed
Lesson 23 rename
1 parent a5cf1b2 commit 5e3a33a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

examples/structure-asyncing.js renamed to examples/23-structure-asyncing.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ routes
2828
route => httpGet(route, {})
2929
)
3030

31-
// run the (clone of) the Task
31+
// run the (clone of) the Task
3232
.fork( console.error, console.log )
3333
// -> Map { "home": "/ result", "about": "/about-us result", "blog": "/blog result" }
3434

@@ -43,9 +43,13 @@ Map({
4343

4444
// now routes are arrays,
4545
// wrap them into List and traverse
46-
routes => List(routes).traverse(
47-
Task.of, route => httpGet(route, {})
48-
)
46+
// to return Task
47+
routes =>
48+
49+
// need to wrap into 'List' providing 'traverse'
50+
List(routes).traverse(
51+
Task.of, route => httpGet(route, {})
52+
)
4953
)
5054
.fork( console.error, console.log )
5155

0 commit comments

Comments
 (0)