@@ -567,7 +567,7 @@ def default_executor
567
567
# @!macro promises.shortcut.using
568
568
# @return [Future]
569
569
def chain ( *args , &task )
570
- chain_using @DefaultExecutor , *args , &task
570
+ chain_on @DefaultExecutor , *args , &task
571
571
end
572
572
573
573
# Chains the task to be executed asynchronously on executor after it is resolved.
@@ -577,11 +577,11 @@ def chain(*args, &task)
577
577
# @return [Future]
578
578
# @!macro promise.param.task-future
579
579
#
580
- # @overload an_event.chain_using (executor, *args, &task)
580
+ # @overload an_event.chain_on (executor, *args, &task)
581
581
# @yield [*args] to the task.
582
- # @overload a_future.chain_using (executor, *args, &task)
582
+ # @overload a_future.chain_on (executor, *args, &task)
583
583
# @yield [fulfilled?, value, reason, *args] to the task.
584
- def chain_using ( executor , *args , &task )
584
+ def chain_on ( executor , *args , &task )
585
585
ChainPromise . new ( self , @DefaultExecutor , executor , args , &task ) . future
586
586
end
587
587
@@ -935,7 +935,7 @@ def exception(*args)
935
935
# @!macro promises.shortcut.using
936
936
# @return [Future]
937
937
def then ( *args , &task )
938
- then_using @DefaultExecutor , *args , &task
938
+ then_on @DefaultExecutor , *args , &task
939
939
end
940
940
941
941
# Chains the task to be executed asynchronously on executor after it fulfills. Does not run
@@ -946,14 +946,14 @@ def then(*args, &task)
946
946
# @!macro promise.param.task-future
947
947
# @return [Future]
948
948
# @yield [value, *args] to the task.
949
- def then_using ( executor , *args , &task )
949
+ def then_on ( executor , *args , &task )
950
950
ThenPromise . new ( self , @DefaultExecutor , executor , args , &task ) . future
951
951
end
952
952
953
953
# @!macro promises.shortcut.using
954
954
# @return [Future]
955
955
def rescue ( *args , &task )
956
- rescue_using @DefaultExecutor , *args , &task
956
+ rescue_on @DefaultExecutor , *args , &task
957
957
end
958
958
959
959
# Chains the task to be executed asynchronously on executor after it rejects. Does not run
@@ -964,7 +964,7 @@ def rescue(*args, &task)
964
964
# @!macro promise.param.task-future
965
965
# @return [Future]
966
966
# @yield [reason, *args] to the task.
967
- def rescue_using ( executor , *args , &task )
967
+ def rescue_on ( executor , *args , &task )
968
968
RescuePromise . new ( self , @DefaultExecutor , executor , args , &task ) . future
969
969
end
970
970
0 commit comments