diff --git a/README.md b/README.md index f9cbc40..8145e0f 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ import "code.nochebuena.dev/einherjar/worker" w := worker.New(logger, worker.DefaultConfig()) -launcher.Append(w) // OnInit starts pool; OnStop drains and stops +lc.Append(w) // OnInit starts pool; OnStop drains and stops ``` ### Dispatching tasks diff --git a/component.go b/component.go index 38722c8..ad05537 100644 --- a/component.go +++ b/component.go @@ -6,7 +6,7 @@ import ( ) // Component adds lifecycle management to Provider. -// Register with launcher.Register before starting. +// Append it to a launcher (lc.Append) before starting. type Component interface { lifecycle.Component observability.Identifiable diff --git a/doc.go b/doc.go index aaf12c0..a88af13 100644 --- a/doc.go +++ b/doc.go @@ -9,10 +9,10 @@ // ShutdownTimeout for all goroutines to finish. Returns nil regardless of // whether the drain completed before the deadline. // -// Register with the launcher before starting: +// Append to a launcher before starting: // // pool := worker.New(logger, cfg) -// launcher.Register(pool) +// lc.Append(pool) // // # Dispatching Tasks //