
22 Jan
2023
22 Jan
'23
2:46 p.m.
Issue #19367 has been reported by luke-gru (Luke Gruber). ---------------------------------------- Bug #19367: Issue with ractor local storage API https://bugs.ruby-lang.org/issues/19367 * Author: luke-gru (Luke Gruber) * Status: Open * Priority: Normal * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- In a non-main ractor, you can do Ractor.main[:key] = 'val', but it only affects storage for Ractor.current, not Ractor.main (which is good!). I think it should throw a RuntimeError if trying to get/set ractor-local storage for non-current ractor. Patch coming. -- https://bugs.ruby-lang.org/