changed the hook func argument to e for more consistent autocomplete

This commit is contained in:
Gani Georgiev 2022-11-14 19:30:13 +02:00
parent a998618d75
commit 77d295730e
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ import (
var StopPropagation = errors.New("Event hook propagation stopped") var StopPropagation = errors.New("Event hook propagation stopped")
// Handler defines a hook handler function. // Handler defines a hook handler function.
type Handler[T any] func(data T) error type Handler[T any] func(e T) error
// Hook defines a concurrent safe structure for handling event hooks // Hook defines a concurrent safe structure for handling event hooks
// (aka. callbacks propagation). // (aka. callbacks propagation).