DrainReady returns a strategy that waits for a short duration after the first completion to batch any other functions that complete at roughly the same time.
(debounce time.Duration)
| 80 | // DrainReady returns a strategy that waits for a short duration after the first |
| 81 | // completion to batch any other functions that complete at roughly the same time. |
| 82 | func DrainReady(debounce time.Duration) DrainStrategy { |
| 83 | return drainReady{debounce: debounce} |
| 84 | } |
| 85 | |
| 86 | type drainReady struct { |
| 87 | debounce time.Duration |
no outgoing calls