We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5cf1b2 commit 5e3a33aCopy full SHA for 5e3a33a
examples/structure-asyncing.js renamed to examples/23-structure-asyncing.js
@@ -28,7 +28,7 @@ routes
28
route => httpGet(route, {})
29
)
30
31
-// run the (clone of) the Task
+// run the (clone of) the Task
32
.fork( console.error, console.log )
33
// -> Map { "home": "/ result", "about": "/about-us result", "blog": "/blog result" }
34
@@ -43,9 +43,13 @@ Map({
43
44
// now routes are arrays,
45
// wrap them into List and traverse
46
- routes => List(routes).traverse(
47
- Task.of, route => httpGet(route, {})
48
- )
+ // to return Task
+ routes =>
+
49
+ // need to wrap into 'List' providing 'traverse'
50
+ List(routes).traverse(
51
+ Task.of, route => httpGet(route, {})
52
+ )
53
54
55
0 commit comments