Commit 71de1bd 1 parent e161079 commit 71de1bd Copy full SHA for 71de1bd
File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -238,6 +238,13 @@ pub trait WatchStreamExt: Stream {
238
238
/// }
239
239
/// });
240
240
///
241
+ /// tokio::spawn(async move {
242
+ /// // subscriber can be used to receive applied_objects
243
+ /// subscriber.for_each(|obj| async move {
244
+ /// info!("saw in subscriber {}", &obj.name_any())
245
+ /// }).await;
246
+ /// });
247
+ ///
241
248
/// // configure the watcher stream and populate the store while polling
242
249
/// watcher(deploys, watcher::Config::default())
243
250
/// .reflect_shared(writer)
@@ -250,11 +257,6 @@ pub trait WatchStreamExt: Stream {
250
257
/// })
251
258
/// .await;
252
259
///
253
- /// // subscriber can be used to receive applied_objects
254
- /// subscriber.for_each(|obj| async move {
255
- /// info!("saw in subscriber {}", &obj.name_any())
256
- /// }).await;
257
- ///
258
260
/// # Ok(())
259
261
/// # }
260
262
/// ```
You can’t perform that action at this time.
0 commit comments