io/router: rename Router.Add to the more specific Queue

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-01-22 16:36:14 +01:00
parent 24f69bf4bb
commit 4f45d9a567
8 changed files with 35 additions and 35 deletions
+2 -2
View File
@@ -79,8 +79,8 @@ func (q *Router) Frame(ops *op.Ops) {
}
}
// Add an event and report whether at least one handler had an event queued.
func (q *Router) Add(events ...event.Event) bool {
// Queue an event and report whether at least one handler had an event queued.
func (q *Router) Queue(events ...event.Event) bool {
for _, e := range events {
switch e := e.(type) {
case profile.Event: