Reword doc comments

This commit is contained in:
Ken Hibino
2020-04-15 07:30:59 -07:00
parent 4df372b369
commit 45933eb6b0
2 changed files with 5 additions and 5 deletions

View File

@@ -258,7 +258,7 @@ var ErrServerStopped = errors.New("asynq: the server has been stopped")
// a signal, it gracefully shuts down all active workers and other
// goroutines to process the tasks.
//
// Run returns any error encountered during server boot time.
// Run returns any error encountered during server startup time.
// If the server has already been stopped, ErrServerStopped is returned.
func (srv *Server) Run(handler Handler) error {
if err := srv.Start(handler); err != nil {
@@ -274,7 +274,7 @@ func (srv *Server) Run(handler Handler) error {
// Tasks are processed concurrently by the workers up to the number of
// concurrency specified at the initialization time.
//
// Start returns any error encountered during server boot time.
// Start returns any error encountered during server startup time.
// If the server has already been stopped, ErrServerStopped is returned.
func (srv *Server) Start(handler Handler) error {
if handler == nil {