@@ -4,9 +4,11 @@ module Actor
4
4
require 'set'
5
5
6
6
# Core of the actor
7
- # @note Whole class should be considered private. An user should use {Context}s and {Reference}s only.
8
- # @note devel: core should not block on anything, e.g. it cannot wait on children to terminate
9
- # that would eat up all threads in task pool and deadlock
7
+ # @note Whole class should be considered private. An user should use
8
+ # {Context}s and {Reference}s only.
9
+ # @note devel: core should not block on anything, e.g. it cannot wait on
10
+ # children to terminate that would eat up all threads in task pool and
11
+ # deadlock
10
12
class Core
11
13
include TypeCheck
12
14
include Concurrent ::Logging
@@ -36,11 +38,14 @@ class Core
36
38
# @option opts [Executor] executor, default is `Concurrent.configuration.global_task_pool`
37
39
# @option opts [true, false] link, atomically link the actor to its parent
38
40
# @option opts [true, false] supervise, atomically supervise the actor by its parent
39
- # @option opts [Array<Array(Behavior::Abstract, Array<Object>)>] behaviour_definition, array of pairs
40
- # where each pair is behaviour class and its args, see {Behaviour.basic_behaviour_definition}
41
- # @option opts [IVar, nil] initialized, if present it'll be set or failed after {Context} initialization
42
- # @option opts [Proc, nil] logger a proc accepting (level, progname, message = nil, &block) params,
43
- # can be used to hook actor instance to any logging system
41
+ # @option opts [Array<Array(Behavior::Abstract, Array<Object>)>]
42
+ # behaviour_definition, array of pairs where each pair is behaviour
43
+ # class and its args, see {Behaviour.basic_behaviour_definition}
44
+ # @option opts [IVar, nil] initialized, if present it'll be set or failed
45
+ # after {Context} initialization
46
+ # @option opts [Proc, nil] logger a proc accepting (level, progname,
47
+ # message = nil, &block) params, can be used to hook actor instance to
48
+ # any logging system
44
49
# @param [Proc] block for class instantiation
45
50
def initialize ( opts = { } , &block )
46
51
synchronize do
0 commit comments