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