Replies: 1 comment
-
Hey @slacki123 The reason is simply that when I rewrote v8, I used async enumerables and other modern language features. There is no particular reason. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, just wondering why do we use the
WatchAsync<TEntity>()
instead of theWatch<TEntity>()
method to watch for custom resources herehttps://github.com/buehler/dotnet-operator-sdk/blob/main/src/KubeOps.Operator/Watcher/ResourceWatcher%7BTEntity%7D.cs#L139
I recently implemented some of my own watchers with the Watch() method and it works really well with simple implementation. What's the reasoning for using
WatchAsync<TEntity>()
? Is it becauseWatch<TEntity>()
wasn't available when the operator was first written or is it lacking some functionality?Beta Was this translation helpful? Give feedback.
All reactions