getsentry / arroyo

A library to build streaming applications that consume from and produce to Kafka.
https://getsentry.github.io/arroyo/
Apache License 2.0
41 stars 7 forks source link

ref(reduce): Allow to reduce to non-cloneable values #346

Closed untitaker closed 6 months ago

untitaker commented 6 months ago

The ergonomics are slightly worse, but I am in a position right now where the value absolutely cannot be cloneable, and working around those trait constraints would be even less ergonomical.

untitaker commented 6 months ago

@Swatinem We'll see, maybe I am going to revert this PR, but I am pretty sure it's for the better. I can also imagine there to be some ergonomic shortcuts for the Clone usecase