You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to implement that for Tuple using FunctionN<params, Void> in Koziolek@8f8a2fd and I use Function because of lack of (Checked)ConsumerN.
Introduction of those consumers gives more flexibility not only for peek/tap functionality, but in the future it will be possible to introduce functionalities similar to forEach but for tuples to emulate object decomposition.
Current status
We have CheckedConsumer that takes one param. We cannot remove if because of backward compatibility, but it could be marked as deprecated and replaced by CheckedConsumer1
The text was updated successfully, but these errors were encountered:
First read this one. Now, let's discuss the introduction of
CheckedConsumerN
andConsumerN
.Motivation
There are some tickets that touch
peek
/tap
functionality for:I tried to implement that for
Tuple
usingFunctionN<params, Void>
in Koziolek@8f8a2fd and I useFunction
because of lack of(Checked)ConsumerN
.Introduction of those consumers gives more flexibility not only for
peek
/tap
functionality, but in the future it will be possible to introduce functionalities similar toforEach
but for tuples to emulate object decomposition.Current status
We have
CheckedConsumer
that takes one param. We cannot remove if because of backward compatibility, but it could be marked as deprecated and replaced byCheckedConsumer1
The text was updated successfully, but these errors were encountered: