Ejemplo n.º 1
0
 /// <summary>
 /// Invokes the action if OptionAsync is in the Some state, otherwise nothing happens.
 /// </summary>
 /// <param name="f">Action to invoke if OptionAsync is in the Some state</param>
 public static Task <Unit> ifSome <T>(OptionAsync <T> OptionAsync, Action <T> Some) =>
 OptionAsync.IfSome(Some);