Open sebdumancic opened 5 months ago
iterate is rolled out to
iterate
next = iterate(iter) while next !== nothing (item, state) = next # body next = iterate(iter, state) end
according to (https://docs.julialang.org/en/v1/manual/interfaces/).
We should create our own @iterate max_time BFSIterator macro, that does something like
@iterate max_time BFSIterator
next = iterate(iter) while next !== nothing (item, state) = next # body task = @spawn iterate(iter, state) next = fetch(task) end
MAybe this post helps: https://discourse.julialang.org/t/simple-timeout-of-function/99578
iterate
is rolled out toaccording to (https://docs.julialang.org/en/v1/manual/interfaces/).
We should create our own
@iterate max_time BFSIterator
macro, that does something like