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
In my use-case I have a base abstract class which has placeholders for methods, that get reimplemented by concrete classes.
In order to stay generic and allow any possible use case, I want my methods to be async. But since in some cases, child classes are going to need it, and other cases, they are not going to need it, I get linting errors because of this rule, which is a bit annoying?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In my use-case I have a base abstract class which has placeholders for methods, that get reimplemented by concrete classes.
In order to stay generic and allow any possible use case, I want my methods to be
async
. But since in some cases, child classes are going to need it, and other cases, they are not going to need it, I get linting errors because of this rule, which is a bit annoying?Beta Was this translation helpful? Give feedback.
All reactions