Need #
`shareable_constant_value` is magic comment.
This commit is contained in:
parent
5dc753df47
commit
3d4207f9bb
@ -674,7 +674,7 @@ TABLE = Ractor.make_shareable( {a: 'ko1', b: 'ko2', c: 'ko3'} )
|
||||
To make it easy, Ruby 3.0 introduced new `shareable_constant_value` Directive.
|
||||
|
||||
```ruby
|
||||
shareable_constant_value: literal
|
||||
# shareable_constant_value: literal
|
||||
|
||||
TABLE = {a: 'ko1', b: 'ko2', c: 'ko3'}
|
||||
#=> Same as: TABLE = Ractor.make_shareable( {a: 'ko1', b: 'ko2', c: 'ko3'} )
|
||||
|
Loading…
x
Reference in New Issue
Block a user