Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
pilot committed Oct 8, 2023
1 parent d0e85bf commit 8b8f161
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions event.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,8 @@ func (bs *EventBase) Dispatch() error {
return bs.Loop(0)
}

// Free frees the event base.
// It will break the loop and close the poller.
func (bs *EventBase) Free() error {
// Shutdown breaks event loop and close the poller.
func (bs *EventBase) Shutdown() error {
return bs.poller.close()
}

Expand Down

0 comments on commit 8b8f161

Please sign in to comment.