177177
178178
179179
180- < span class ="summary_desc "> < div class ='inline '> < p > testing and when it returns very shortly .</ p >
180+ < span class ="summary_desc "> < div class ='inline '> < p > Supplied future .</ p >
181181</ div > </ span >
182182
183183</ li >
@@ -687,12 +687,12 @@ <h3 class="signature first" id="==-instance_method">
687687 < pre class ="lines ">
688688
689689
690- 100
691- 101
692- 102 </ pre >
690+ 95
691+ 96
692+ 97 </ pre >
693693 </ td >
694694 < td >
695- < pre class ="code "> < span class ="info file "> # File 'lib-edge/concurrent/actor/reference.rb', line 100 </ span >
695+ < pre class ="code "> < span class ="info file "> # File 'lib-edge/concurrent/actor/reference.rb', line 95 </ span >
696696
697697< span class ='kw '> def</ span > < span class ='op '> ==</ span > < span class ='lparen '> (</ span > < span class ='id identifier rubyid_other '> other</ span > < span class ='rparen '> )</ span >
698698 < span class ='id identifier rubyid_Type? '> Type?</ span > < span class ='id identifier rubyid_other '> other</ span > < span class ='comma '> ,</ span > < span class ='kw '> self</ span > < span class ='period '> .</ span > < span class ='id identifier rubyid_class '> class</ span > < span class ='kw '> and</ span > < span class ='id identifier rubyid_other '> other</ span > < span class ='period '> .</ span > < span class ='id identifier rubyid_send '> send</ span > < span class ='lparen '> (</ span > < span class ='symbol '> :core</ span > < span class ='rparen '> )</ span > < span class ='op '> ==</ span > < span class ='id identifier rubyid_core '> core</ span >
@@ -720,22 +720,14 @@ <h3 class="signature " id="ask-instance_method">
720720
721721 < div class ="note notetag ">
722722 < strong > Note:</ strong >
723- < div class ='inline '> < p > it's a good practice to use tell whenever possible. Ask should be used only for</ p >
724- </ div >
725- </ div >
726-
727- < div class ="note notetag ">
728- < strong > Note:</ strong >
729- < div class ='inline '> < p > it's a good practice to use < span class ='object_link '> < a href ="#tell-instance_method " title ="Concurrent::Actor::Reference#tell (method) "> #tell</ a > </ span > whenever possible. Results can be send back with other messages.
723+ < div class ='inline '> < p > it's a good practice to use < span class ='object_link '> < a href ="#tell-instance_method " title ="Concurrent::Actor::Reference#tell (method) "> #tell</ a > </ span > whenever possible. Results can be sent back with other messages.
730724Ask should be used only for testing and when it returns very shortly. It can lead to deadlock if all threads in
731725global_io_executor will block on while asking. It's fine to use it form outside of actors and
732726global_io_executor.</ p >
733727</ div >
734728 </ div >
735729
736- < p > testing and when it returns very shortly. It can lead to deadlock if all threads in
737- global_io_executor will block on while asking. It's fine to use it form outside of actors and
738- global_io_executor.</ p >
730+ < p > Returns supplied future</ p >
739731
740732
741733 </ div >
@@ -808,12 +800,12 @@ <h3 class="signature " id="ask-instance_method">
808800 < pre class ="lines ">
809801
810802
811- 54
812- 55
813- 56 </ pre >
803+ 49
804+ 50
805+ 51 </ pre >
814806 </ td >
815807 < td >
816- < pre class ="code "> < span class ="info file "> # File 'lib-edge/concurrent/actor/reference.rb', line 54 </ span >
808+ < pre class ="code "> < span class ="info file "> # File 'lib-edge/concurrent/actor/reference.rb', line 49 </ span >
817809
818810< span class ='kw '> def</ span > < span class ='id identifier rubyid_ask '> ask</ span > < span class ='lparen '> (</ span > < span class ='id identifier rubyid_message '> message</ span > < span class ='comma '> ,</ span > < span class ='id identifier rubyid_future '> future</ span > < span class ='op '> =</ span > < span class ='const '> < span class ='object_link '> < a href ="../../Concurrent.html " title ="Concurrent (module) "> Concurrent</ a > </ span > </ span > < span class ='op '> ::</ span > < span class ='const '> < span class ='object_link '> < a href ="../Promises.html " title ="Concurrent::Promises (module) "> Promises</ a > </ span > </ span > < span class ='period '> .</ span > < span class ='id identifier rubyid_resolvable_future '> < span class ='object_link '> < a href ="../Promises/FactoryMethods.html#resolvable_future-instance_method " title ="Concurrent::Promises::FactoryMethods#resolvable_future (method) "> resolvable_future</ a > </ span > </ span > < span class ='rparen '> )</ span >
819811 < span class ='id identifier rubyid_message '> message</ span > < span class ='id identifier rubyid_message '> message</ span > < span class ='comma '> ,</ span > < span class ='id identifier rubyid_future '> future</ span >
@@ -837,7 +829,7 @@ <h3 class="signature " id="ask!-instance_method">
837829
838830 < div class ="note notetag ">
839831 < strong > Note:</ strong >
840- < div class ='inline '> < p > it's a good practice to use < span class ='object_link '> < a href ="#tell-instance_method " title ="Concurrent::Actor::Reference#tell (method) "> #tell</ a > </ span > whenever possible. Results can be send back with other messages.
832+ < div class ='inline '> < p > it's a good practice to use < span class ='object_link '> < a href ="#tell-instance_method " title ="Concurrent::Actor::Reference#tell (method) "> #tell</ a > </ span > whenever possible. Results can be sent back with other messages.
841833Ask should be used only for testing and when it returns very shortly. It can lead to deadlock if all threads in
842834global_io_executor will block on while asking. It's fine to use it form outside of actors and
843835global_io_executor.</ p >
@@ -934,12 +926,12 @@ <h3 class="signature " id="ask!-instance_method">
934926 < pre class ="lines ">
935927
936928
937- 75
938- 76
939- 77 </ pre >
929+ 70
930+ 71
931+ 72 </ pre >
940932 </ td >
941933 < td >
942- < pre class ="code "> < span class ="info file "> # File 'lib-edge/concurrent/actor/reference.rb', line 75 </ span >
934+ < pre class ="code "> < span class ="info file "> # File 'lib-edge/concurrent/actor/reference.rb', line 70 </ span >
943935
944936< span class ='kw '> def</ span > < span class ='id identifier rubyid_ask! '> ask!</ span > < span class ='lparen '> (</ span > < span class ='id identifier rubyid_message '> message</ span > < span class ='comma '> ,</ span > < span class ='id identifier rubyid_future '> future</ span > < span class ='op '> =</ span > < span class ='const '> < span class ='object_link '> < a href ="../../Concurrent.html " title ="Concurrent (module) "> Concurrent</ a > </ span > </ span > < span class ='op '> ::</ span > < span class ='const '> < span class ='object_link '> < a href ="../Promises.html " title ="Concurrent::Promises (module) "> Promises</ a > </ span > </ span > < span class ='period '> .</ span > < span class ='id identifier rubyid_resolvable_future '> < span class ='object_link '> < a href ="../Promises/FactoryMethods.html#resolvable_future-instance_method " title ="Concurrent::Promises::FactoryMethods#resolvable_future (method) "> resolvable_future</ a > </ span > </ span > < span class ='rparen '> )</ span >
945937 < span class ='id identifier rubyid_ask '> ask</ span > < span class ='lparen '> (</ span > < span class ='id identifier rubyid_message '> message</ span > < span class ='comma '> ,</ span > < span class ='id identifier rubyid_future '> future</ span > < span class ='rparen '> )</ span > < span class ='period '> .</ span > < span class ='id identifier rubyid_value! '> value!</ span >
@@ -980,12 +972,12 @@ <h3 class="signature " id="dead_letter_routing-instance_method">
980972 < pre class ="lines ">
981973
982974
983- 90
984- 91
985- 92 </ pre >
975+ 85
976+ 86
977+ 87 </ pre >
986978 </ td >
987979 < td >
988- < pre class ="code "> < span class ="info file "> # File 'lib-edge/concurrent/actor/reference.rb', line 90 </ span >
980+ < pre class ="code "> < span class ="info file "> # File 'lib-edge/concurrent/actor/reference.rb', line 85 </ span >
989981
990982< span class ='kw '> def</ span > < span class ='id identifier rubyid_dead_letter_routing '> dead_letter_routing</ span >
991983 < span class ='id identifier rubyid_core '> core</ span > < span class ='period '> .</ span > < span class ='id identifier rubyid_dead_letter_routing '> dead_letter_routing</ span >
@@ -1019,12 +1011,12 @@ <h3 class="signature " id="map-instance_method">
10191011 < pre class ="lines ">
10201012
10211013
1022- 79
1023- 80
1024- 81 </ pre >
1014+ 74
1015+ 75
1016+ 76 </ pre >
10251017 </ td >
10261018 < td >
1027- < pre class ="code "> < span class ="info file "> # File 'lib-edge/concurrent/actor/reference.rb', line 79 </ span >
1019+ < pre class ="code "> < span class ="info file "> # File 'lib-edge/concurrent/actor/reference.rb', line 74 </ span >
10281020
10291021< span class ='kw '> def</ span > < span class ='id identifier rubyid_map '> map</ span > < span class ='lparen '> (</ span > < span class ='id identifier rubyid_messages '> messages</ span > < span class ='rparen '> )</ span >
10301022 < span class ='id identifier rubyid_messages '> messages</ span > < span class ='period '> .</ span > < span class ='id identifier rubyid_map '> map</ span > < span class ='lbrace '> {</ span > < span class ='op '> |</ span > < span class ='id identifier rubyid_m '> m</ span > < span class ='op '> |</ span > < span class ='kw '> self</ span > < span class ='period '> .</ span > < span class ='id identifier rubyid_ask '> ask</ span > < span class ='lparen '> (</ span > < span class ='id identifier rubyid_m '> m</ span > < span class ='rparen '> )</ span > < span class ='rbrace '> }</ span >
@@ -1059,13 +1051,13 @@ <h3 class="signature " id="message-instance_method">
10591051 < pre class ="lines ">
10601052
10611053
1062- 84
1063- 85
1064- 86
1065- 87 </ pre >
1054+ 79
1055+ 80
1056+ 81
1057+ 82 </ pre >
10661058 </ td >
10671059 < td >
1068- < pre class ="code "> < span class ="info file "> # File 'lib-edge/concurrent/actor/reference.rb', line 84 </ span >
1060+ < pre class ="code "> < span class ="info file "> # File 'lib-edge/concurrent/actor/reference.rb', line 79 </ span >
10691061
10701062< span class ='kw '> def</ span > < span class ='id identifier rubyid_message '> message</ span > < span class ='lparen '> (</ span > < span class ='id identifier rubyid_message '> message</ span > < span class ='comma '> ,</ span > < span class ='id identifier rubyid_future '> future</ span > < span class ='op '> =</ span > < span class ='kw '> nil</ span > < span class ='rparen '> )</ span >
10711063 < span class ='id identifier rubyid_core '> core</ span > < span class ='period '> .</ span > < span class ='id identifier rubyid_on_envelope '> on_envelope</ span > < span class ='const '> < span class ='object_link '> < a href ="Envelope.html " title ="Concurrent::Actor::Envelope (class) "> Envelope</ a > </ span > </ span > < span class ='period '> .</ span > < span class ='id identifier rubyid_new '> < span class ='object_link '> < a href ="Envelope.html#initialize-instance_method " title ="Concurrent::Actor::Envelope#initialize (method) "> new</ a > </ span > </ span > < span class ='lparen '> (</ span > < span class ='id identifier rubyid_message '> message</ span > < span class ='comma '> ,</ span > < span class ='id identifier rubyid_future '> future</ span > < span class ='comma '> ,</ span > < span class ='const '> < span class ='object_link '> < a href ="../Actor.html " title ="Concurrent::Actor (module) "> Actor</ a > </ span > </ span > < span class ='period '> .</ span > < span class ='id identifier rubyid_current '> < span class ='object_link '> < a href ="../Actor.html#current-class_method " title ="Concurrent::Actor.current (method) "> current</ a > </ span > </ span > < span class ='op '> ||</ span > < span class ='const '> Thread</ span > < span class ='period '> .</ span > < span class ='id identifier rubyid_current '> current</ span > < span class ='comma '> ,</ span > < span class ='kw '> self</ span > < span class ='rparen '> )</ span >
@@ -1192,12 +1184,12 @@ <h3 class="signature " id="to_s-instance_method">
11921184 < pre class ="lines ">
11931185
11941186
1195- 94
1196- 95
1197- 96 </ pre >
1187+ 89
1188+ 90
1189+ 91 </ pre >
11981190 </ td >
11991191 < td >
1200- < pre class ="code "> < span class ="info file "> # File 'lib-edge/concurrent/actor/reference.rb', line 94 </ span >
1192+ < pre class ="code "> < span class ="info file "> # File 'lib-edge/concurrent/actor/reference.rb', line 89 </ span >
12011193
12021194< span class ='kw '> def</ span > < span class ='id identifier rubyid_to_s '> to_s</ span >
12031195 < span class ='id identifier rubyid_format '> format</ span > < span class ='tstring '> < span class ='tstring_beg '> '</ span > < span class ='tstring_content '> %s %s (%s)></ span > < span class ='tstring_end '> '</ span > </ span > < span class ='comma '> ,</ span > < span class ='kw '> super</ span > < span class ='lbracket '> [</ span > < span class ='int '> 0</ span > < span class ='op '> ..</ span > < span class ='op '> -</ span > < span class ='int '> 2</ span > < span class ='rbracket '> ]</ span > < span class ='comma '> ,</ span > < span class ='id identifier rubyid_path '> path</ span > < span class ='comma '> ,</ span > < span class ='id identifier rubyid_actor_class '> actor_class</ span >
0 commit comments