v0.0.604
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 3m16s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 3m16s
This commit is contained in:
@@ -9,6 +9,12 @@ import (
|
||||
"git.blackforestbytes.com/BlackForestBytes/goext/syncext"
|
||||
)
|
||||
|
||||
// DelayedCombiningInvoker is a utility to combine multiple consecutive requests into a single execution
|
||||
//
|
||||
// Requests are made with Request(), and consecutive requests are combined during the `delay` period.
|
||||
//
|
||||
// Can be used, e.g., for search-controls, where we want to init the search when teh user stops typing
|
||||
// Or generally to queue an execution once a burst of requests is over.
|
||||
type DelayedCombiningInvoker struct {
|
||||
syncLock sync.Mutex
|
||||
triggerChan chan bool
|
||||
|
Reference in New Issue
Block a user