Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Batch ¶
Batch reads items from in channel, and prepares a batch of items to the handler. If you close the channel, Batch will drain all items and exit without any error. If there is no sufficient items, it handles current read items and waits for the next batch.
func BatchTimeout ¶
BatchTimeout reads items from in channel or tmeout, and then prepares a batch of items to the handler. Not like the Batch function, it waits until timeout if there is no sufficient items for batch.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.