File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,15 @@ class Agent
46
46
#
47
47
# @param [Object] initial the initial value
48
48
# @param [Hash] opts the options used to define the behavior at update and deref
49
+ #
49
50
# @option opts [Fixnum] :timeout (TIMEOUT) maximum number of seconds before an update is cancelled
51
+ #
50
52
# @option opts [Boolean] :operation (false) when +true+ will execute the future on the global
51
53
# operation pool (for long-running operations), when +false+ will execute the future on the
52
54
# global task pool (for short-running tasks)
53
55
# @option opts [object] :executor when provided will run all operations on
54
56
# this executor rather than the global thread pool (overrides :operation)
57
+ #
55
58
# @option opts [String] :dup_on_deref (false) call +#dup+ before returning the data
56
59
# @option opts [String] :freeze_on_deref (false) call +#freeze+ before returning the data
57
60
# @option opts [String] :copy_on_deref (nil) call the given +Proc+ passing the internal value and
You can’t perform that action at this time.
0 commit comments