Skip to content

Observable.just() is a hot observable and not cold observable as mentioned in the doc. #52

Description

@Ansh1234

`fun main() {
Observable.just(returnInt())
}

fun returnInt() : Int {
println("inside return block")
return 2;
}`

Even without subscribing to the Observable.just(), it prints the statement, which means it is a hot observable and not a cold observable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions