Skip to content

0.1.3

Compare
Choose a tag to compare
@tvandinther tvandinther released this 13 Mar 23:24
· 13 commits to master since this release
242feee

Fallible now includes a Void type that can be used to return void from a method. It does not have an accessible constructor and can only be created by using the Fallible.Return property.

public Fallible<Void> DoSomething()
{
    // Do something
    if (somethingFailed) return new Error("Something went wrong");
    
    return Fallible.Return;
}