Skip to main content

Posts

Showing posts with the label Exceptions

Exception handling for an async method

I've been unit testing a method which has a return type of Task<T> and I need to handle cases where  exceptions will be thrown. Should I use the Task approach or convert to an Rx observable stream? Task try-catch approach: or Rx declarative style: I know which one I prefer :)