Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
CompletableFuture<XXX>).// Generate an SMHCollectionFuture exampleContext context;SMHCollectionFuture smh = new SMHCollection(context,new MySMHSimpleUser()).future();//Get directory listCompletableFuture<DirectoryContents> cf = smh.list(1, 50);//Block and get result// try {// DirectoryContents directoryContents = cf.get();// } catch (Throwable e){// e.printStackTrace();// }//Asynchronously fetch result// If execution successful:cf.thenApply((result) -> {DirectoryContents directoryContents = result;return result;});// If execution exception:cf.exceptionally((e) -> {e.printStackTrace();return null;});
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan