We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf0997c commit a2d4195Copy full SHA for a2d4195
lib/concurrent/tvar.rb
@@ -1,4 +1,5 @@
1
require 'set'
2
+require 'concurrent/synchronization'
3
4
module Concurrent
5
@@ -8,7 +9,8 @@ module Concurrent
8
9
# @!macro thread_safe_variable_comparison
10
#
11
# {include:file:doc/tvar.md}
- class TVar
12
+ class TVar < Synchronization::Object
13
+ safe_initialization!
14
15
# Create a new `TVar` with an initial value.
16
def initialize(value)
0 commit comments