fix spacing

remotes/github/master
Chakib Benziane 5 years ago
parent 7d9df9197a
commit c2780f76a9

@ -28,23 +28,23 @@ The `Manager` handles communication and synchronized shutdown procedure.
```golang ```golang
func main() { func main() {
// Create a unit manager // Create a unit manager
manager := gum.NewManager() manager := gum.NewManager()
// Subscribe to SIGINT // Subscribe to SIGINT
manager.SubscribeTo(os.Interrupt) manager.SubscribeTo(os.Interrupt)
// NewWorker returns a type implementing WorkUnit interface // NewWorker returns a type implementing WorkUnit interface unit :=
unit := NewWorker() NewWorker()
// Register the unit with the manager // Register the unit with the manager
manager.AddUnit(scheduler) manager.AddUnit(scheduler)
// Start the manager // Start the manager
go manager.Start() go manager.Start()
// Wait for all units to shutdown gracefully through their `Shutdown` method // Wait for all units to shutdown gracefully through their `Shutdown` method
<-manager.Quit <-manager.Quit
} }
``` ```

Loading…
Cancel
Save