About 50 results
Open links in new tab
  1. rx java - What is the difference between Observable, Completable and ...

    Sep 17, 2017 · Can anyone please explain the difference between Observable, Completable and Single in RxJava with clear examples? In which scenario we use one over the others?

  2. Wait for multiple CompletableFuture (until max timeout)?

    java concurrency task completable-future unirest-java edited Nov 13, 2023 at 7:49 Top-Master 9,045 6 52 97

  3. CompletableFuture - Run multiple rest calls in parallel and get ...

    Jul 12, 2020 · Yes, you can run the loop for the list of account details and populate it using the completable future given above, each loop run will not necessarily run on the different thread.

  4. java - CompletableFuture in loop: How to collect all responses and ...

    Jul 2, 2018 · I am trying to call a rest api for PUT request in a loop. Each call is a CompletableFuture. Each api call returns an object of type RoomTypes.RoomType I want to collect the responses (both …

  5. How to retain slf4j MDC logging context in CompletableFuture?

    Mar 5, 2018 · When executing async CompletableFuture, the parent threadcontext and moreover the org.slf4j.MDC context is lost. This is bad as I'm using some kind of "fish tagging" to track logs from …

  6. java - CompletableFuture runAsync vs supplyAsync, when to choose …

    What is the rationale for choosing one over the other? Only difference I could infer after reading the documentation is that runAsync takes Runnable as an input parameter and supplyAsync takes Supp...

  7. java - ExecutorService vs CompletableFuture - Stack Overflow

    Sep 13, 2018 · java asynchronous java-8 executorservice completable-future asked Sep 12, 2018 at 21:04 Dwarak 361 1 3 3

  8. Throwing exception from CompletableFuture - Stack Overflow

    Jun 7, 2017 · I have the following code: // How to throw the ServerException? public void myFunc() throws ServerException{ // Some code CompletableFuture<A> a ...

  9. Understanding CompletableFuture::runAsync - Stack Overflow

    Oct 21, 2016 · I just read the documentation about CompletableFuture::runAsync and was pretty confused by the explanation. Here is what's written there: Returns a new CompletableFuture that is …

  10. rx java - Difference between RxJava2 Completable.fromAction () vs ...

    When should we use Completable.fromAction() and when should we use Completable.fromCallable() Is there a specific Usecase From the documentation it seems that both do the same thing and it is hard...