-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Description
I'm finding that qmap doesn't work with Iterators.products.
julia> ThreadPools.qmap(Iterators.product(1:3, 1:3)) do _
0
end
ERROR: MethodError: no method matching empty(::Base.Iterators.ProductIterator{Tuple{UnitRange{Int64},UnitRange{Int64}}})
Closest candidates are:
empty(::BitSet) at bitset.jl:43
empty(::BitSet, ::Type{Int64}) at bitset.jl:43
empty(::DataStructures.IntSet) at /home/samuela/.julia/packages/DataStructures/iWRBf/src/int_set.jl:16
...
Stacktrace:
[1] _detect_type(::Function, ::Base.Iterators.ProductIterator{Tuple{UnitRange{Int64},UnitRange{Int64}}}) at /home/samuela/.julia/packages/ThreadPools/KEWRC/src/interface.jl:11
[2] qmap(::Function, ::Base.Iterators.ProductIterator{Tuple{UnitRange{Int64},UnitRange{Int64}}}) at /home/samuela/.julia/packages/ThreadPools/KEWRC/src/simplefuncs.jl:97
[3] top-level scope at REPL[53]:1
collect()ing on the iterator first doesn't seem to work either...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels