Пример #1
0
 /// <summary>
 /// Invoke a delegate if the TryAsync returns a value successfully
 /// </summary>
 /// <typeparam name="T">Type of the bound value</typeparam>
 /// <param name="self">TryAsync computation</param>
 /// <param name="Succ">Delegate to invoke if successful</param>
 public static Task <Unit> ifSucc <T>(TryAsync <T> self, Action <T> Succ) =>
 self.IfSucc(Succ);