Error and catching updates #1370
louthy
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Based on this discussion the
Error
type has had a few changes:Equals
operators have been removed. Meaning that allError
types use the built-in record structural equality.Is<E>() where E : Exception
, the test for an exceptional error contained within theError
, has been renamed toHasException<E>()
.IsType<E>() where E : Error
has been added to test ifthis
contains anE
. It's likethis is E
, but becausethis
might contain many-errors, it checks for the existence of anyError
of typeE
.The
Catch
extensions and the@catch
combinators have been updated:Catch
(previously missing)Previous releases:
I did some minor releases that didn't get release notes, so here's a quick summary:
notFollowedBy
inParsec
reports the correct positionuseAsync
) and implicit (viause
) support forIAsyncDisposable
resourcesRun
overrides forEff
weren't disposing of theEnvIO
properlyFin.Apply
matching fixLiftM
support forStreamT
:Lift(IAsyncEnumerable<A>)
orLift(IEnumerable<A>)
to return aStreamT<M, A>
LiftM(IAsyncEnumerable<K<M, A>>)
andLiftM(IEnumerable<K<M, A>>)
to also return aStreamT<M, A>
This discussion was created from the release Error and catching updates.
Beta Was this translation helpful? Give feedback.
All reactions