Skip to content

Commit 9170b5b

Browse files
committed
Merge pull request #237 from rranelli/master
Fix typo in `IVar`'s documentation
2 parents 3964a7b + 901a6b7 commit 9170b5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/concurrent/ivar.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
module Concurrent
88

99
# An `IVar` is like a future that you can assign. As a future is a value that is being computed that you can wait on, an `IVar` is a value that is waiting to be assigned, that you can wait on. `IVars` are single assignment and deterministic.
10-
#
10+
#
1111
# Then, express futures as an asynchronous computation that assigns an `IVar`. The `IVar` becomes the primitive on which [futures](Future) and [dataflow](Dataflow) are built.
1212
#
1313
# An `IVar` is a single-element container that is normally created empty, and
@@ -19,7 +19,7 @@ module Concurrent
1919
# a `Future`. If you want to create a graph of parallel tasks all executed when
2020
# the values they depend on are ready you want `dataflow`. `IVar` is generally
2121
# a low-level primitive.
22-
#
22+
#
2323
# **See Also:**
2424
#
2525
# * For the theory: Arvind, R. Nikhil, and K. Pingali. [I-Structures: Data structures for parallel computing](http://dl.acm.org/citation.cfm?id=69562). In Proceedings of Workshop on Graph Reduction, 1986.
@@ -60,7 +60,7 @@ def initialize(value = NO_VALUE, opts = {})
6060

6161
# Add an observer on this object that will receive notification on update.
6262
#
63-
# Upon completion the `IVar` will notify all observers in a thread-say way. The `func`
63+
# Upon completion the `IVar` will notify all observers in a thread-safe way. The `func`
6464
# method of the observer will be called with three arguments: the `Time` at which the
6565
# `Future` completed the asynchronous operation, the final `value` (or `nil` on rejection),
6666
# and the final `reason` (or `nil` on fulfillment).

0 commit comments

Comments
 (0)