Stream: helpdesk (published)

Topic: Conditional `wait`ing?


view this post on Zulip Mason Protter (Nov 19 2024 at 15:32):

I'd like something like wait_and(x, y) which waits for x and y to complete, and a wait_or(x, y) which waits for x or y to complete.

Ideally I'd like to be able to say "I want to wait for x to complete, or, I'd like to wait for [y, z, w, v, u] to all complete"

Anyone have any ideas for implementing this?

view this post on Zulip Fredrik Ekre (Nov 19 2024 at 16:00):

Julia 1.12 have waitall and waitany at least.

view this post on Zulip Mason Protter (Nov 19 2024 at 17:18):

Fair enough. I guess I'll have to try and copy that implementation.

view this post on Zulip jar (Nov 19 2024 at 19:21):

The internet version of wait_any is called "happy eyeballs". https://juliaconcurrent.github.io/Julio.jl/dev/tutorials/happy_eyeballs/

view this post on Zulip Mason Protter (Nov 19 2024 at 19:31):

Well that is a much worse name :stuck_out_tongue:


Last updated: Nov 22 2024 at 04:41 UTC