How to use aggregate publish cursor?

how to use aggregate publish cursor?

use this packages Reactive Aggregate