We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handler.Debounce()
Example: Debounce incoming events by 3 seconds to batch-process them at once. Wait for a maximum of 10 seconds before force-handling the events.
package example import ( "time" "github.com/modernice/goes/event" "github.com/modernice/goes/event/handler" ) func example(bus event.Bus) { h := handler.New(bus, handler.Debounce(3*time.Second, 10*time.Second)) }
The text was updated successfully, but these errors were encountered:
handler.Before()
handler.After()
handler.WithLock()
No branches or pull requests
Usage
Example: Debounce incoming events by 3 seconds to batch-process them at once. Wait for a maximum of 10 seconds before force-handling the events.
The text was updated successfully, but these errors were encountered: