I’ve only just worked out you can do this - which is super useful. Right back at the start I was stuggling with farming out control values to loops, basic concurrency stuff. This pattern solves that at a stroke and means less code.
Question is, I can’t find it in the help - is it a feature that I can rely on @samaaron ?
live_loop :a do
set :foo, tick
sleep 1
end
live_loop :b do
n=sync :foo
puts n
end