-
-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a WatchStreamExt trait for stream chaining (#899)
* Add a WatchStreamExt trait for better event chaining From discussion with @teozkr after #698 . This tries to solve the problem in a more generic way using Stream helpers. It was not trivial, and I'm not convinced this is the easiest way to do it, but every other path i tried failed. Signed-off-by: clux <sszynrae@gmail.com> * some slightly better docs and tests Signed-off-by: clux <sszynrae@gmail.com> * move eventflatten to own module to simplify ext Signed-off-by: clux <sszynrae@gmail.com> * update kubectl example to use WatchStreamExt Signed-off-by: clux <sszynrae@gmail.com> * convert watcher examples Signed-off-by: clux <sszynrae@gmail.com> * avoid re-importing futures::ready Signed-off-by: clux <sszynrae@gmail.com> * s/delete/emit_delete Signed-off-by: clux <sszynrae@gmail.com> * remove bad example comment Signed-off-by: clux <sszynrae@gmail.com> * use teo's rewrite queue Signed-off-by: clux <sszynrae@gmail.com> * update examples to all use WatchStreamExt Signed-off-by: clux <sszynrae@gmail.com> * add deprecation warning on try_flatten_* and remove internal use Signed-off-by: clux <sszynrae@gmail.com> * quick test of controllers with some minor tweaks Signed-off-by: clux <sszynrae@gmail.com>
- Loading branch information
Showing
20 changed files
with
208 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.