You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/ractor.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ port.receive # get a message to the port. Only the creator Ractor can receive fr
47
47
#=> 42
48
48
```
49
49
50
-
Ractors have its own deafult port and `Ractor#send`, `Ractor.receive` will use it.
50
+
Ractors have its own default port and `Ractor#send`, `Ractor.receive` will use it.
51
51
52
52
### Copy & Move semantics to send messages
53
53
@@ -201,7 +201,7 @@ You can wait multiple Ractor port's receiving.
201
201
The return value of `Ractor.select()` is `[port, msg]` where `port` is a ready port and `msg` is received message.
202
202
203
203
To make convenient, `Ractor.select` can also accept Ractors to wait the termination of Ractors.
204
-
The return value of `Ractor.select()` is `[r, msg]` where `r` is a terminated Ractor and `msg` is the value of Ractor's blcok.
204
+
The return value of `Ractor.select()` is `[r, msg]` where `r` is a terminated Ractor and `msg` is the value of Ractor's block.
205
205
206
206
Wait for a single ractor (same as `Ractor#value`):
207
207
@@ -359,7 +359,7 @@ The following objects are shareable.
359
359
360
360
Implementation: Now shareable objects (`RVALUE`) have `FL_SHAREABLE` flag. This flag can be added lazily.
361
361
362
-
To make shareable objects, `Ractor.make_shareable(obj)` method is provided. In this case, try to make sharaeble by freezing `obj` and recursively traversable objects. This method accepts `copy:` keyword (default value is false).`Ractor.make_shareable(obj, copy: true)` tries to make a deep copy of `obj` and make the copied object shareable.
362
+
To make shareable objects, `Ractor.make_shareable(obj)` method is provided. In this case, try to make shareable by freezing `obj` and recursively traversable objects. This method accepts `copy:` keyword (default value is false).`Ractor.make_shareable(obj, copy: true)` tries to make a deep copy of `obj` and make the copied object shareable.
363
363
364
364
## Language changes to isolate unshareable objects between Ractors
365
365
@@ -384,7 +384,7 @@ rescue Ractor::RemoteError => e
384
384
end
385
385
```
386
386
387
-
Note that some special global variables, such as `$stdin`, `$stdout` and `$stderr` are Ractor-lcoal. See [[Bug #17268]](https://bugs.ruby-lang.org/issues/17268) for more details.
387
+
Note that some special global variables, such as `$stdin`, `$stdout` and `$stderr` are Ractor-local. See [[Bug #17268]](https://bugs.ruby-lang.org/issues/17268) for more details.
0 commit comments