Giter Club home page Giter Club logo

rxjava-book-examples's Issues

Postgres NOTIFY LISTEN Case study

Is it possible to add the code snippet in this repo for Postgres NOTIFY LISTEN Case study presented in Chapter 5 of the book, where we could reuse the same connection across multiple multiple subscribers who are interested in different channels?

What's the naming convention applied to the samples?

First I thought it the numeric part of the test name was a page number, but that doesn't fit. What's the naming convention applied to the samples? How do I map a sample on a page of the book with the test names in each "chapter" class?
Thanks!

Output different from output in book

On page 152, following code is implemented for subscribeOn:

log("Starting");
final Observable<String> obs = simple();
log("Created");
obs
.subscribeOn(schedulerA)
.subscribe(
x -> log("Got " + x),
Throwable::printStackTrace,
() -> log("Completed")
);
log("Exiting");

Book output is:

35 | main | Starting
112 | main | Created
123 | main | Exiting
123 | Sched-A-0 | Subscribed
124 | Sched-A-0 | Got A
124 | Sched-A-0 | Got B
124 | Sched-A-0 | Completed

But when I implement same code, I don't get output for scheduler:

0	| main	| Starting
81	| main	| Created
83	| main	| Transformed
94	| main	| exiting

Program exits even before scheduler thread starts working. To get output from scheduler thread, I have to make main thread sleep at end.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.