func NewRelationStatusWatcher(
	caller base.APICaller, result params.RelationLifeSuspendedStatusWatchResult,
) watcher.RelationStatusWatcher {
	w := &relationStatusWatcher{
		caller:                  caller,
		relationStatusWatcherId: result.RelationStatusWatcherId,
		out:                     make(chan []watcher.RelationStatusChange),
	}
	w.tomb.Go(func() error {
		return w.loop(result.Changes)
	})
	return w
}
// NewRelationStatusWatcher returns a watcher notifying of changes to
// relation life and suspended status.
NewRelationStatusWatcher returns a watcher notifying of changes to
relation life and suspended status.
// NewRelationStatusWatcher returns a watcher notifying of changes to // relation life and suspended status .
func NewRelationStatusWatcher(
	caller base.APICaller, result params.RelationLifeSuspendedStatusWatchResult,
) watcher.RelationStatusWatcher {
	w := &relationStatusWatcher{
		caller:                  caller,
		relationStatusWatcherId: result.RelationStatusWatcherId,
		out:                     make(chan []watcher.RelationStatusChange),
	}
	w.tomb.Go(func() error {
		return w.loop(result.Changes)
	})
	return w
}
func NewRelationStatusWatcher ( caller base . APICaller , result params . RelationLifeSuspendedStatusWatchResult , ) watcher . RelationStatusWatcher { w := & relationStatusWatcher { caller : caller , relationStatusWatcherId : result . RelationStatusWatcherId , out : make ( chan [ ] watcher . RelationStatusChange ) , } w . tomb . Go ( func ( ) error { return w . loop ( result . Changes ) } ) return w }
NewRelationStatusWatcher returns a watcher notifying of changes to
relation life and suspended status.
NewRelationStatusWatcher returns a watcher notifying of changes to relation life and suspended status .