shareable_lambda { ... } -> ProcRuby 4.0 から[permalink][rdoc][edit]-
Ractor.shareable_proc と同じですが、lambda である Proc を返します。
l = Ractor.shareable_lambda { 42 } p Ractor.shareable?(l) # => true p l.lambda? # => true[SEE_ALSO] Ractor.shareable_proc
shareable_lambda { ... } -> ProcRuby 4.0 から[permalink][rdoc][edit]Ractor.shareable_proc と同じですが、lambda である Proc を返します。
l = Ractor.shareable_lambda { 42 }
p Ractor.shareable?(l) # => true
p l.lambda? # => true
[SEE_ALSO] Ractor.shareable_proc