This repository was archived by the owner on Oct 21, 2026. It is now read-only.
Repository navigation
Ametrin.Optional - v0.2.5
What's Changed
- added
Or(Throw)Async(#24) - added
OrThrowwith custom message (#23) - added
Option<T>.ToResultAsync - added
Result<T(, E)>.To(Option|ErrorState)Async - added
ErrorState(<E>).ToResult(Async) - added
DisposeAsyncextension methods - made
Result<TValue>toResult<TValue, Exception>explicit to prevent accidential conversions - marked all custom exceptions as System.Serializable (#22)
- deprecated
ToOptionandToResulton arbitary objects (they are more annoying than helpful) - removed obsolete
(Try)Map(Async)overloads that took an error map- replaced by
MapError(#19)
- replaced by
- introduced a generator for some async extension methods. please report any breaking changes you encounter with async!
- updated TUnit to 0.25.21
0.2.4
- added
(Try)Map(Error)overloads with one argument (#21) - added
RequireExistsforResult<FileSystemInfo, Error> - added
RequireExistsoverload with custom error forResult<FileSystemInfo> - added
ZipArchive.TryGetEntryreturning an option - updated TUnit to 0.24.0
Full Changelog: v0.2.3...v0.2.5