You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, technically AsyncServerInterceptor.intercept is an abstract method which is not intended to be called. I gave it a default no-op implementation as an example. That said, I don't see any reason to change the example implementation. If you have a test for your interceptor, so you'll know if it ever breaks on update, then you'll be fine.
Now that you bring this up, it might make sense to make the default implementation non-abstract. I need to write some tests before committing to that, but maybe I'll make this the intended usage in the future.
I have the following interceptor
And it seems to work fine for the error and success cases I tested. It made sense to me since
AsyncServerInterceptor
does thething where it decides how to handle the next method.
And it also made sense because a not-implemented interceptor should be a no-op
Is this intended use to call the
super().intercept
and let it handle? Is this a bad idea?The text was updated successfully, but these errors were encountered: