File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -62,14 +62,16 @@ module Concurrent
62
62
# @note Thread safe guarantees can only be made when asynchronous method calls
63
63
# are not mixed with synchronous method calls. Use only synchronous calls
64
64
# 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."
66
71
#
67
72
# @since 0.6.0
68
73
#
69
74
# @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
73
75
module Async
74
76
75
77
# Check for the presence of a method on an object and determine if a given
You can’t perform that action at this time.
0 commit comments