/// <summary> /// Complete the future with the right side, never complete if left side occurs. /// </summary> public static Future <B> dropError <A, B>( this Future <Either <A, B> > future, bool logOnError = false ) => Future.a <B>(p => future.onComplete(either => either.voidFold( err => { if (logOnError) { Log.d.error(err.ToString()); } }, p.complete )));
public static Future <A> asFuture <A>(this IHeapFuture <A> f) => Future.a(f);
public void UnfulfilledToASync() { unfulfilledShouldNotCallMapper(i => Future.a <int>(p => {})); }
/** 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));