Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix max_time flag using Scala-like futures #80

Open
sebdumancic opened this issue Apr 4, 2024 · 2 comments
Open

Fix max_time flag using Scala-like futures #80

sebdumancic opened this issue Apr 4, 2024 · 2 comments
Assignees

Comments

@sebdumancic
Copy link
Member

No description provided.

@THinnerichs
Copy link
Member

THinnerichs commented Apr 4, 2024

iterate is rolled out to

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

next = iterate(iter)
while next !== nothing
    (item, state) = next
    # body
    task = @spawn iterate(iter, state)
    next = fetch(task)
end

@sebdumancic
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants