Actions
Feature #18919
openRactor: can't share #Method objects
Feature #18919:
Ractor: can't share #Method objects
Description
The following is not shareable:
> meth = ::Kernel.method(:BigDecimal)
=> #<Method: Kernel.BigDecimal(*)>
<internal:ractor>:816:in `make_shareable': can not make shareable object for #<Method: Kernel.BigDecimal(*)> (Ractor::Error)
I understand that procs have the issue of accessing outer-scope variables, but does the same apply to methods converted to procs?
Actions