Skip to content

Replace define_aggregator's generated proxy class with a factory object - #752

Merged
tenderlove merged 1 commit into
sparklemotion:mainfrom
jhawthorn:aggregator-factories
Oct 16, 2026
Merged

tenderlove merged 1 commit into
sparklemotion:mainfrom
jhawthorn:aggregator-factories

Conversation

@jhawthorn

Copy link
Copy Markdown
Member

define_aggregator2 only needs a handler that responds to new and arity. Use a small object that clones the template for new, instead of generating a class whose instances just forwarded step and finalize to a clone of the template.

This is simpler and will work around a Ractor issue from #749

define_aggregator2 only needs a handler that responds to new and arity. Use a
small object that clones the template for new, instead of generating a class
whose instances just forwarded step and finalize to a clone of the template.
@tenderlove
tenderlove enabled auto-merge October 16, 2026 20:51
@tenderlove
tenderlove merged commit 03af202 into sparklemotion:main Oct 16, 2026
268 of 269 checks passed
@jhawthorn
jhawthorn deleted the aggregator-factories branch October 16, 2026 20:59
@flavorjones

Copy link
Copy Markdown
Member

@jhawthorn This shipped in v2.10.1. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants