Skip to content

Commit a43611a

Browse files
committed
Minor YARD doc update to Async.
1 parent 36f167d commit a43611a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/concurrent/async.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,16 @@ module Concurrent
6262
# @note Thread safe guarantees can only be made when asynchronous method calls
6363
# are not mixed with synchronous method calls. Use only synchronous calls
6464
# when the object is used exclusively on a single thread. Use only
65-
# asynchronous calls when the object is shared between threads.
65+
# +async+ and +await+ when the object is shared between threads. Once you
66+
# call a method using +async+, you should no longer call any methods
67+
# directly on the object. Use +async+ and +await+ exclusively from then on.
68+
# With careful programming it is possible to switch back and forth but it's
69+
# also very easy to create race conditions and break your application.
70+
# Basically, it's "async all the way down."
6671
#
6772
# @since 0.6.0
6873
#
6974
# @see Concurrent::Obligation
70-
#
71-
# @see http://msdn.microsoft.com/en-us/library/hh191443.aspx Asynchronous Programming with Async and Await (C# and Visual Basic)
72-
# @see http://msdn.microsoft.com/en-us/magazine/jj991977.aspx Best Practices in Asynchronous Programming
7375
module Async
7476

7577
# Check for the presence of a method on an object and determine if a given

0 commit comments

Comments
 (0)