Versions in this module Expand all Collapse all v0 v0.0.1 Mar 16, 2022 Changes in this version + type Dataloader struct + func NewDataloader(fetch func(keys []K) ([]T, []error), wait time.Duration, maxBatch int) *Dataloader[K, T] + func (l *Dataloader[K, T]) Clear(key K) + func (l *Dataloader[K, T]) ClearAll() + func (l *Dataloader[K, T]) Load(key K) (T, error) + func (l *Dataloader[K, T]) LoadAll(keys []K) ([]T, []error) + func (l *Dataloader[K, T]) LoadAllThunk(keys []K) func() ([]T, []error) + func (l *Dataloader[K, T]) LoadThunk(key K) func() (T, error) + func (l *Dataloader[K, T]) Prime(key K, value T) bool