@@ -110,7 +110,7 @@ def future_on(default_executor, *args, &task)
110
110
#
111
111
# @param [true, false] fulfilled
112
112
# @param [Object] value
113
- # @param [Exception ] reason
113
+ # @param [Object ] reason
114
114
# @!macro promises.param.default_executor
115
115
# @return [Future]
116
116
def resolved_future ( fulfilled , value , reason , default_executor = self . default_executor )
@@ -129,7 +129,7 @@ def fulfilled_future(value, default_executor = self.default_executor)
129
129
# Creates resolved future with will be rejected with the given reason.
130
130
#
131
131
# @!macro promises.param.default_executor
132
- # @param [Exception ] reason
132
+ # @param [Object ] reason
133
133
# @return [Future]
134
134
def rejected_future ( reason , default_executor = self . default_executor )
135
135
resolved_future false , nil , reason , default_executor
@@ -623,7 +623,7 @@ def chain(*args, &task)
623
623
# @yield [fulfilled, value, reason, *args] to the task.
624
624
# @yieldparam [true, false] fulfilled
625
625
# @yieldparam [Object] value
626
- # @yieldparam [Exception ] reason
626
+ # @yieldparam [Object ] reason
627
627
def chain_on ( executor , *args , &task )
628
628
ChainPromise . new_blocked_by1 ( self , @DefaultExecutor , executor , args , &task ) . future
629
629
end
@@ -664,7 +664,7 @@ def on_resolution(*args, &callback)
664
664
# @yield [fulfilled, value, reason, *args] to the callback.
665
665
# @yieldparam [true, false] fulfilled
666
666
# @yieldparam [Object] value
667
- # @yieldparam [Exception ] reason
667
+ # @yieldparam [Object ] reason
668
668
def on_resolution! ( *args , &callback )
669
669
add_callback :callback_on_resolution , args , callback
670
670
end
@@ -682,7 +682,7 @@ def on_resolution!(*args, &callback)
682
682
# @yield [fulfilled, value, reason, *args] to the callback.
683
683
# @yieldparam [true, false] fulfilled
684
684
# @yieldparam [Object] value
685
- # @yieldparam [Exception ] reason
685
+ # @yieldparam [Object ] reason
686
686
def on_resolution_using ( executor , *args , &callback )
687
687
add_callback :async_callback_on_resolution , executor , args , callback
688
688
end
@@ -966,7 +966,7 @@ def value(timeout = nil, timeout_value = nil)
966
966
# @!macro promises.warn.nil
967
967
# @!macro promises.param.timeout
968
968
# @!macro promises.param.timeout_value
969
- # @return [Exception , timeout_value] the reason, or timeout_value on timeout, or nil on fulfillment.
969
+ # @return [Object , timeout_value] the reason, or timeout_value on timeout, or nil on fulfillment.
970
970
def reason ( timeout = nil , timeout_value = nil )
971
971
if wait_until_resolved timeout
972
972
internal_state . reason
@@ -980,7 +980,7 @@ def reason(timeout = nil, timeout_value = nil)
980
980
#
981
981
# @!macro promises.warn.blocks
982
982
# @!macro promises.param.timeout
983
- # @return [Array(Boolean, Object, Exception ), nil] triplet of fulfilled?, value, reason, or nil
983
+ # @return [Array(Boolean, Object, Object ), nil] triplet of fulfilled?, value, reason, or nil
984
984
# on timeout.
985
985
def result ( timeout = nil )
986
986
internal_state . result if wait_until_resolved timeout
@@ -1423,7 +1423,7 @@ class ResolvableFuture < Future
1423
1423
#
1424
1424
# @param [true, false] fulfilled
1425
1425
# @param [Object] value
1426
- # @param [Exception ] reason
1426
+ # @param [Object ] reason
1427
1427
# @!macro promise.param.raise_on_reassign
1428
1428
# @!macro promise.param.reserved
1429
1429
def resolve ( fulfilled = true , value = nil , reason = nil , raise_on_reassign = true , reserved = false )
@@ -1443,7 +1443,7 @@ def fulfill(value, raise_on_reassign = true, reserved = false)
1443
1443
# Makes the future rejected with `reason`,
1444
1444
# which triggers all dependent futures.
1445
1445
#
1446
- # @param [Exception ] reason
1446
+ # @param [Object ] reason
1447
1447
# @!macro promise.param.raise_on_reassign
1448
1448
# @!macro promise.param.reserved
1449
1449
def reject ( reason , raise_on_reassign = true , reserved = false )
0 commit comments