public Future < PutObjectResult > putAsync ( String key , String value ) { return Future . of ( ( ) -> put ( key , value ) , this . uploadService ) . flatMap ( t -> t . fold ( p -> Future . ofResult ( p ) , e -> Future . ofError ( e ) ) ) ; }
Non - blocking call