Hello everyone,
Im trying to use multithreading in EventBasedModel. Im getting this error while doing this.
Can someone comment ? What can be issue? What is this error trying to say?
Threads.@threads for agent in allagents(model)
model_rule!(agent, model)
end
nested task error: MethodError: no method matching firstindex(::Base.ValueIterator{Dict{Int64, CTL}})
Closest candidates are:
firstindex(::Any, ::Any)
@ Base abstractarray.jl:447
firstindex(::Markdown.MD)
@ Markdown ~/julia-1.10.0/share/julia/stdlib/v1.10/Markdown/src/parse/parse.jl:27
firstindex(::TranscodingStreams.Memory)
@ TranscodingStreams ~/.julia/packages/TranscodingStreams/Ra4ZD/src/memory.jl:18
...
Stacktrace:
[1] #398#threadsfor_fun#88
@ Main ./threadingconstructs.jl:199 [inlined]
[2] #398#threadsfor_fun
@ Main ./threadingconstructs.jl:181 [inlined]
[3] (::Base.Threads.var"#1#2"{var"#398#threadsfor_fun#89"{var"#398#threadsfor_fun#88#90"{β¦}}, Int64})()
@ Base.Threads ./threadingconstructs.jl:153
...and 63 more exceptions.