Is there anything in Julia equivalent or near to Stream
in Dart?
Yes, the equivalents would be Channel
(Parallel Computing · The Julia Language) and Condition
(Tasks · The Julia Language).
A Channel
provides a way to (asynchronously) pass values between Task
s, 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 Task
s can wait
on (you can also wait
on a Channel
, which will trigger when a value is available in the Channel
).
4 Likes