func NewOfferStatusWatcher(
	caller base.APICaller, result params.OfferStatusWatchResult,
) watcher.OfferStatusWatcher {
	w := &offerStatusWatcher{
		caller:               caller,
		offerStatusWatcherId: result.OfferStatusWatcherId,
		out:                  make(chan []watcher.OfferStatusChange),
	}
	w.tomb.Go(func() error {
		return w.loop(result.Changes)
	})
	return w
}
// NewOfferStatusWatcher returns a watcher notifying of changes to
// offer status.
NewOfferStatusWatcher returns a watcher notifying of changes to
offer status.
// NewOfferStatusWatcher returns a watcher notifying of changes to // offer status .
func NewOfferStatusWatcher(
	caller base.APICaller, result params.OfferStatusWatchResult,
) watcher.OfferStatusWatcher {
	w := &offerStatusWatcher{
		caller:               caller,
		offerStatusWatcherId: result.OfferStatusWatcherId,
		out:                  make(chan []watcher.OfferStatusChange),
	}
	w.tomb.Go(func() error {
		return w.loop(result.Changes)
	})
	return w
}
func NewOfferStatusWatcher ( caller base . APICaller , result params . OfferStatusWatchResult , ) watcher . OfferStatusWatcher { w := & offerStatusWatcher { caller : caller , offerStatusWatcherId : result . OfferStatusWatcherId , out : make ( chan [ ] watcher . OfferStatusChange ) , } w . tomb . Go ( func ( ) error { return w . loop ( result . Changes ) } ) return w }
NewOfferStatusWatcher returns a watcher notifying of changes to
offer status.
NewOfferStatusWatcher returns a watcher notifying of changes to offer status .