Skip to content

fromCallable in "Convert functions to Observable" #3

Open

Description

@sebaslogen

Reading the defer+just solution I remembered there is a fromCallable() in Rx, wouldn't solve the problem described in a simpler way?

http://reactivex.io/documentation/operators/start.html

http://artemzin.com/blog/rxjava-defer-execution-of-function-via-fromcallable/

Is there any advantage in using defer+just instead of fromCallable in your example?

Activity

  1. mgp commented on Mar 16, 2016

    @mgp
    Owner

    Huh, interesting! I think when we were developing the Khan Academy Android app, fromCallable wasn't yet implemented? (We also had a slight aversion to using any function that was annotated @Experimental.)

    I will investigate to see if there are any differences, and update the item to specify fromCallable if there are not! Thank you for reporting this!

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

      ⌂ Proxy