reactor/reactor-core

New operator - delayBetween

Aperta

#3582 aperta il 21 set 2023

 (9 commenti) (5 reazioni) (0 assegnatari)Java (1164 fork)batch import
help wantedstatus/has-workaround

Metriche repository

Star
 (4748 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Summary:

Current Flux.delayElements will delay the elements since the start of the first elements. It would be nice to have another operator that will give delay between elements.

Example:

Flux.delayElements(Duration.ofHour(1)) 5 Elements arrived --> delay 1 hour --> element 1 processed --> delay 1 hour --> element 2 processed ...

Flux.delayBetween(Duration.ofHour(1)) 5 elements arrived --> element 1 processed --> delay 1 hour --> element 2 processed ...

Guida contributor