Closed oldratlee closed 2 months ago
subtask of #194 Suggestion from the author @linzee1 of article 深入理解 Future, CompletableFuture, ListenableFuture,回调机制. 💕
subtask of #194
Suggestion from the author @linzee1 of article 深入理解 Future, CompletableFuture, ListenableFuture,回调机制. 💕
catching() methods of Guava ListenableFuture is best-practice, straightforward and convenient, nice.
catching()
Guava ListenableFuture
According the naming convention of CompletableFuture, the implementing instance methods are:
CompletableFuture
catching
catchingAsync
catchingCompose
catchingComposeAsync
catching*
exceptionally*
catching()
methods ofGuava ListenableFuture
is best-practice, straightforward and convenient, nice.According the naming convention of
CompletableFuture
, the implementing instance methods are:catching
/catchingAsync
catchingCompose
/catchingComposeAsync
📝 Implementation Note
catching*
method is beforeexceptionally*
method. (becausecatching*
method is more best-practice and straightforward.)