When does live coding changes happen in live loops?

Hello hive mind, some live coding fundamentals please.
When I run the following code and make changes to it,
the sound doesn’t change until I stop and start it, I do remember
some other examples when pressing play again will.
In general what kinds of loops allow this?

Pentatonic Bleeps

live_loop :bleeps do
with_fx :reverb, mix: 0.8, room: 1.0 do
loop do
play scale(:Eb2, :major_pentatonic, num_octaves: 3).choose, release: 0.1, amp: rand
sleep 0.2
end
end
end

With live_loop ou only need to hit start again or use the hotkey for start, the changes will happen in the next iteration of the loop. No need to stop, that’s the point.

You have a loop do in there, that’s your problem, it’s an infinite loop so execution gets stuck there.

This works:

live_loop :bleeps do
  with_fx :reverb, mix: 0.8, room: 1.0 do
    play scale(:Eb2, :major_pentatonic, num_octaves: 3).choose, release: 0.1, amp: rand
    sleep 0.2
  end
end