I am building a multi of upsert and I am stuck at this part
multi =
Enum.reduce(randoms_info, Multi.new(), fn random_info, multi ->
Task.async(build_random_multi(multi, random_info, merchant))
end)
|> Enum.map(&Task.await/1)
|> build_random_arrangement_multi(store)
After running this code the console tells me (FunctionClauseError) no function clause matching in Task.async/1 what am I doing wrong. Sorry I am new to this