So how do promises relate to anything in C# currently? C# implements a promise like syntax through the ContinueWith Task extension. This creates a continuation for the target task to return its result, whereby we can then do something with the result or check for an error.
Let’s see this in play, first let’s take a look at how we would represent a promise like implementation in C#:
Thanks for reading and keep building awesome.
Until next time!
P.S. You can also find me on Twitter: @ianaldo21