Stream in Julia

Is there anything in Julia equivalent or near to Stream in Dart?

Yes, the equivalents would be Channel (https://docs.julialang.org/en/v1/manual/parallel-computing/#Channels-1) and Condition (https://docs.julialang.org/en/v1/base/parallel/#Base.Condition).

A Channel provides a way to (asynchronously) pass values between Tasks, and can either be buffering or blocking. You can put! a value into a Channel, and take! a value from a Channel, which, as you might expect, operates in a FIFO (first-in -> first-out) manner.

A Condition provides an edge-triggered signal that Tasks can wait on (you can also wait on a Channel, which will trigger when a value is available in the Channel).

4 Likes