vendor: Update everything
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4620
This commit is contained in:
14
vendor/github.com/thejerf/suture/messages.go
generated
vendored
14
vendor/github.com/thejerf/suture/messages.go
generated
vendored
@@ -14,7 +14,8 @@ type listServices struct {
|
||||
func (ls listServices) isSupervisorMessage() {}
|
||||
|
||||
type removeService struct {
|
||||
id serviceID
|
||||
id serviceID
|
||||
notification chan struct{}
|
||||
}
|
||||
|
||||
func (rs removeService) isSupervisorMessage() {}
|
||||
@@ -59,17 +60,6 @@ type addService struct {
|
||||
|
||||
func (as addService) isSupervisorMessage() {}
|
||||
|
||||
// Stop stops the Supervisor.
|
||||
//
|
||||
// This function will not return until either all Services have stopped, or
|
||||
// they timeout after the timeout value given to the Supervisor at creation.
|
||||
func (s *Supervisor) Stop() {
|
||||
done := make(chan struct{})
|
||||
if s.sendControl(stopSupervisor{done}) {
|
||||
<-done
|
||||
}
|
||||
}
|
||||
|
||||
type stopSupervisor struct {
|
||||
done chan struct{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user