Skip to content

Commit ee725fd

Browse files
committed
Remove concurrent processing in 'find used' steps
1 parent af24949 commit ee725fd

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

lib/elixir_script/passes/find_used_functions.ex

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,19 @@ defmodule ElixirScript.FindUsedFunctions do
1111
def execute(entry_modules, pid) do
1212
entry_modules
1313
|> List.wrap
14-
|> Task.async_stream(fn
14+
|> Enum.each(fn
1515
module ->
1616
walk_module(module, pid)
1717
end)
18-
|> Stream.run()
1918

2019
pid
2120
|> ElixirScript.State.list_modules
22-
|> Task.async_stream(fn
21+
|> Enum.each(fn
2322
{module, info} ->
2423
if get_in(info, [:attributes, :protocol_impl]) do
2524
walk_module(module, pid)
2625
end
2726
end)
28-
|> Stream.run()
2927
end
3028

3129
defp walk_module(module, pid) do

lib/elixir_script/passes/find_used_modules.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ defmodule ElixirScript.FindUsedModules do
1010
def execute(modules, pid) do
1111
modules
1212
|> List.wrap
13-
|> Task.async_stream(fn(module) ->
13+
|> Enum.each(fn(module) ->
1414
if ElixirScript.State.get_module(pid, module) == nil do
1515
do_execute(module, pid)
1616
end
1717
end)
18-
|> Stream.run()
1918
end
2019

2120
defp do_execute(module, pid) do

0 commit comments

Comments
 (0)