Skip to content

Commit 78273fd

Browse files
committed
Task.sequence => Task.concurrent
1 parent 50e886b commit 78273fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Compiler/Outline.gren

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ findSourceFiles fsPerm outline outlinePath =
106106
in
107107
Array.map (\srcDir -> Path.append srcDir outlinePath) sourceDirs
108108
|> Array.map (findSourceFilesHelp fsPerm Path.empty)
109-
|> Task.sequence
109+
|> Task.concurrent
110110
|> Task.map Array.flatten
111-
|> Task.andThen (\paths -> Task.sequence <| Array.map (readSourceFile fsPerm) paths)
111+
|> Task.andThen (\paths -> Task.concurrent <| Array.map (readSourceFile fsPerm) paths)
112112

113113

114114
findSourceFilesHelp : FileSystem.Permission -> Path -> Path -> Task FileSystem.Error (Array { absolute : Path, relative : Path })
@@ -137,7 +137,7 @@ findSourceFilesHelp fsPerm local root =
137137
_ ->
138138
Nothing
139139
)
140-
|> Task.sequence
140+
|> Task.concurrent
141141
|> Task.map Array.flatten
142142
)
143143

0 commit comments

Comments
 (0)