Exemplo n.º 1
0
 /** Complete the future with the right side, never complete if left side occurs. **/
 public static Future <B> dropError <A, B>(this Future <Either <A, B> > future) =>
 Future.a <B>(p => future.onSuccess(p.complete));