When trying to use @threads on a for loop with enumerate, an error is thrown
Threads.@threads for (idx, a) in enumerate(A)
... # Process
end
ERROR: LoadError: TaskFailedException:
MethodError: no method matching firstindex(::Base.Iterators.Enumerate{Array{Int64,1}})
Is there something I should be aware of, or a workaround? Or is this a bug in Julia?