Registry / async / sync
library0.5.0rbrubygemsunverified

A module that provides a two-phase lock with a counter.

gem install sync
INSTALL
IMPORT
SIG · SYNC
S
sync
asyncrubyv0.5.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.

Sync
require 'sync'

Use Sync to manage shared and exclusive locks.

require 'sync' lock = Sync.new lock.synchronize(:shared) do # Read operation end lock.synchronize(:exclusive) do # Write operation end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
30
Resources
sync — gem install sync · libregistry