Registry / utility / sync-attr

sync-attr

JSON →
library2.0.0rbrubygemsunverified

Thread-safe lazy initialization of attributes for multi-threaded environments.

gem install sync_attr
INSTALL
IMPORT
SIG · SYNC-ATTR
S
sync-attr
utilityrubyv2.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SyncAttr
require 'sync_attr'

Define a thread-safe lazy attribute

require 'sync_attr' class MyClass sync_attr :counter, default: 0 end obj = MyClass.new obj.counter # => 0
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
26
Amazon
1
Resources
sync-attr — gem install sync-attr · libregistry