Method: Hyperstack::Internal::State::Mapper.bulk_update

Defined in:
lib/hyperstack/internal/state/mapper.rb

.bulk_updateObject

Code can be wrapped in the bulk_update method, and notifications of any mutations that occur during the yield will be scheduled for after the current event finishes.



97
98
99
100
101
102
103
# File 'lib/hyperstack/internal/state/mapper.rb', line 97

def bulk_update
  saved_bulk_update_flag = @bulk_update_flag
  @bulk_update_flag = true
  yield
ensure
  @bulk_update_flag = saved_bulk_update_flag
end