Skip to content

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

@Ansh1234

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.

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