Sha256: d764ea6d4d31b538352e2a07590133a23d1f2639ef283757b0fb1bcd698e8014
Contents?: true
Size: 234 Bytes
Versions: 6
Compression:
Stored size: 234 Bytes
Contents
module UniqueId #:nodoc: def new_unique_id $id_semaphore ||= Mutex.new $id_semaphore.synchronize do $gen_unique_id ||= 0 $gen_unique_id += 1 end end def last_unique_id $gen_unique_id ||= 0 end end
Version data entries
6 entries across 6 versions & 1 rubygems