File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class Core
35
35
# @option opts [Class] reference a custom descendant of {Reference} to use
36
36
# @option opts [Context] actor_class a class to be instantiated defining Actor's behaviour
37
37
# @option opts [Array<Object>] args arguments for actor_class instantiation
38
- # @option opts [Executor] executor, default is `Concurrent.configuration.global_task_pool `
38
+ # @option opts [Executor] executor, default is `Concurrent.global_io_executor `
39
39
# @option opts [true, false] link, atomically link the actor to its parent
40
40
# @option opts [true, false] supervise, atomically supervise the actor by its parent
41
41
# @option opts [Array<Array(Behavior::Abstract, Array<Object>)>]
@@ -56,7 +56,7 @@ def initialize(opts = {}, &block)
56
56
@context_class = Child! opts . fetch ( :class ) , AbstractContext
57
57
allocate_context
58
58
59
- @executor = Type! opts . fetch ( :executor , Concurrent . configuration . global_task_pool ) , Executor
59
+ @executor = Type! opts . fetch ( :executor , Concurrent . global_io_executor ) , Executor
60
60
raise ArgumentError , 'ImmediateExecutor is not supported' if @executor . is_a? ImmediateExecutor
61
61
62
62
@reference = ( Child! opts [ :reference_class ] || @context . default_reference_class , Reference ) . new self
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ def tell(message)
27
27
28
28
# @note it's a good practice to use tell whenever possible. Ask should be used only for
29
29
# testing and when it returns very shortly. It can lead to deadlock if all threads in
30
- # global_task_pool will block on while asking. It's fine to use it form outside of actors and
31
- # global_task_pool .
30
+ # global_io_executor will block on while asking. It's fine to use it form outside of actors and
31
+ # global_io_executor .
32
32
#
33
33
# sends message to the actor and asks for the result of its processing, returns immediately
34
34
# @param [Object] message
@@ -40,8 +40,8 @@ def ask(message, ivar = IVar.new)
40
40
41
41
# @note it's a good practice to use tell whenever possible. Ask should be used only for
42
42
# testing and when it returns very shortly. It can lead to deadlock if all threads in
43
- # global_task_pool will block on while asking. It's fine to use it form outside of actors and
44
- # global_task_pool .
43
+ # global_io_executor will block on while asking. It's fine to use it form outside of actors and
44
+ # global_io_executor .
45
45
#
46
46
# sends message to the actor and asks for the result of its processing, blocks
47
47
# @param [Object] message
You can’t perform that action at this time.
0 commit comments