From: marcandre-ruby-core@... Date: 2021-01-06T20:53:10+00:00 Subject: [ruby-core:101967] [Ruby master Bug#17513] Methods of shareable objects and UnboundMethods should be shareable Issue #17513 has been updated by marcandre (Marc-Andre Lafortune). Agreed, some methods can not be made shareable ����. ---------------------------------------- Bug #17513: Methods of shareable objects and UnboundMethods should be shareable https://bugs.ruby-lang.org/issues/17513#change-89820 * Author: marcandre (Marc-Andre Lafortune) * Status: Open * Priority: Normal * Assignee: ko1 (Koichi Sasada) * ruby -v: 3.0.0p0 * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- ```ruby class Foo def foo end end f = Foo.new.freeze Ractor.shareable?(f) # => true Ractor.make_shareable(f.method(:foo).to_proc) # => Proc, ok Ractor.make_shareable(f.method(:foo)) # => Ractor::Error, expected Method Ractor.make_shareable(Foo.instance_method(:foo)) # => Ractor::Error, expected UnboundMethod ``` -- https://bugs.ruby-lang.org/ Unsubscribe: