scala-commons icon indicating copy to clipboard operation
scala-commons copied to clipboard

Handle thrown exception outside the monadic context of Task

Open halotukozak opened this issue 2 years ago • 0 comments

Task(sth).map(throw Error()) doesn't lead to failing the Task, because throw Error() has Nothing type, so it has also lambda type. If such a check is possible, it should be included in commons-analyzer.

halotukozak avatar Oct 12 '23 16:10 halotukozak