string result = 10.AsContinuation<string, int>()
.Then(value => value + 10)
.Catch(fail => $"Error: {fail}")
.Match(number => number.ToString(),
error => error);
//result = "20"
string result = "test".AsContinuation<string, int>()
.Then(value => value + 10)
.Catch(fail => $"Error: {fail}")
.Match(number => number.ToString(),
error => error);
//result = "Error: test"