Null as generic type argument was used before void was supported and means in this case that only the occurence of the even is meaningful, but the event value is not.
With Null the value null is the only valid event value. With void a callback function can be passed that does not take any parameter.
2
Rémi Rousselet
On
That's a hack around the fact that sinks require an argument.
Some peoples use streams as a flux of events instead of a value changing over time, but the class isn't designed with this in mind. They typically try to represent the following method as a stream:
Nullas generic type argument was used beforevoidwas supported and means in this case that only the occurence of the even is meaningful, but the event value is not.With
Nullthe valuenullis the only valid event value. Withvoida callback function can be passed that does not take any parameter.