55
66module Concurrent
77
8- # @example ping
9- # class Ping
10- # include Context
11- # def on_message(message)
12- # message
13- # end
14- # end
15- # Ping.spawn(:ping1).ask(:m).value #=> :m
8+ # {include:file:lib/concurrent/actress/doc.md}
169 module Actress
1710
1811 require 'concurrent/actress/type_check'
@@ -47,7 +40,7 @@ def on_message(message)
4740 ROOT = Core . new ( parent : nil , name : '/' , class : Root ) . reference
4841
4942 # @param block for actress_class instantiation
50- # @param args see {# spawn_optionify}
43+ # @param args see {. spawn_optionify}
5144 def self . spawn ( *args , &block )
5245 if Actress . current
5346 Core . new ( spawn_optionify ( *args ) . merge ( parent : Actress . current ) , &block ) . reference
@@ -56,7 +49,7 @@ def self.spawn(*args, &block)
5649 end
5750 end
5851
59- # as {# spawn} but it'll raise when Actor not initialized properly
52+ # as {. spawn} but it'll raise when Actor not initialized properly
6053 def self . spawn! ( *args , &block )
6154 spawn ( spawn_optionify ( *args ) . merge ( initialized : ivar = IVar . new ) , &block ) . tap { ivar . no_error! }
6255 end
@@ -66,7 +59,7 @@ def self.spawn!(*args, &block)
6659 # @param [String, Symbol] name of the instance, it's used to generate the path of the actor
6760 # @param args for actress_class instantiation
6861 # @overload spawn_optionify(opts)
69- # see {Core.new } opts
62+ # see {Core#initialize } opts
7063 def self . spawn_optionify ( *args )
7164 if args . size == 1 && args . first . is_a? ( Hash )
7265 args . first
0 commit comments