public Future <B> map <B>(Fn <A, B> mapper) { return(implementation.fold( v => Future <B> .successful(mapper(v)), _ => Future <B> .unfulfilled, f => Future <B> .async(p => f.onComplete(v => p.complete(mapper(v)))) )); }
public override string ToString() => $"{nameof(Error)}[" + $"{type} " + $"in '{objFullPath}' " + $@"@ '{location.fold( asset => asset.path, scenePath => scenePath.path, unknownLocation => "Unknown location" )}'. " + $"{message}" + $"]";