graph-gophers / dataloader

Implementation of Facebook's DataLoader in Golang
MIT License
1.21k stars 75 forks source link

add Flush() to bypass waiting for the timer #110

Open gburt opened 8 months ago

gburt commented 8 months ago

Add a Flush() method to the dataloader.Interface that if called will immediately fetch the outstanding batch without waiting for the timer. Should let us lower the latency in situations where we know that no more keys are going to be loaded so there's no reason to keep waiting.