Permalink
Browse files
Removed duplicate documentation and fixed typos.
- Loading branch information
Showing
with
2 additions
and
7 deletions.
-
+2
−7
lib-edge/concurrent/actor/reference.rb
|
@@ -35,12 +35,7 @@ def tell(message) |
|
|
|
|
|
alias_method :<<, :tell |
|
|
|
|
|
# @note it's a good practice to use tell whenever possible. Ask should be used only for |
|
|
# testing and when it returns very shortly. It can lead to deadlock if all threads in |
|
|
# global_io_executor will block on while asking. It's fine to use it form outside of actors and |
|
|
# global_io_executor. |
|
|
# |
|
|
# @note it's a good practice to use {#tell} whenever possible. Results can be send back with other messages. |
|
|
# @note it's a good practice to use {#tell} whenever possible. Results can be sent back with other messages. |
|
|
# Ask should be used only for testing and when it returns very shortly. It can lead to deadlock if all threads in |
|
|
# global_io_executor will block on while asking. It's fine to use it form outside of actors and |
|
|
# global_io_executor. |
|
@@ -61,7 +56,7 @@ def ask(message, future = Concurrent::Promises.resolvable_future) |
|
|
# Sends the message synchronously and blocks until the message |
|
|
# is processed. Raises on error. |
|
|
# |
|
|
# @note it's a good practice to use {#tell} whenever possible. Results can be send back with other messages. |
|
|
# @note it's a good practice to use {#tell} whenever possible. Results can be sent back with other messages. |
|
|
# Ask should be used only for testing and when it returns very shortly. It can lead to deadlock if all threads in |
|
|
# global_io_executor will block on while asking. It's fine to use it form outside of actors and |
|
|
# global_io_executor. |
|
|
0 comments on commit
5df3c13