Skip to content

Commit 94b2b75

Browse files
committed
Avoid using Task in the next tries
1 parent d6a323e commit 94b2b75

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/rustler_precompiled.ex

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -833,9 +833,7 @@ defmodule RustlerPrecompiled do
833833
wait_in_ms = :rand.uniform(count * 2_000)
834834
Process.sleep(wait_in_ms)
835835

836-
task = Task.async(fun)
837-
838-
{:cont, Task.await(task, :infinity)}
836+
{:cont, fun.()}
839837
end
840838
end)
841839
end

0 commit comments

Comments
 (0)