Nulls are generally not allowed in 2.x thus a Void type won't let you emit any onNext(null) unlike 1.x. If you think you need Void as your element type, it indicates you don't care about what elements are just that you want to react to something over and over.
For this case, you can instead use any other type and signal any value. In the wiki there is an example you can adapt:
Nulls are generally not allowed in 2.x thus a
Void
type won't let you emit anyonNext(null)
unlike 1.x. If you think you needVoid
as your element type, it indicates you don't care about what elements are just that you want to react to something over and over.For this case, you can instead use any other type and signal any value. In the wiki there is an example you can adapt: