Skip to content

Commit

Permalink
feat: Synchronize debounce store reads
Browse files Browse the repository at this point in the history
  • Loading branch information
julianrubisch committed Mar 1, 2023
1 parent 68ae3c7 commit 0288894
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/models/concerns/cable_ready/updatable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ def []=(key, value)
@dict[key] = value
end
end

def [](key)
synchronize do
@dict[key]
end
end
end

mattr_accessor :debounce_adapter, default: MemoryDebounceAdapter.instance
Expand Down

0 comments on commit 0288894

Please sign in to comment.