Uploaded image for project: 'Realm Java SDK'
  1. Realm Java SDK
  2. RJAVA-539

Add first-class RxJava support for RealmUser asynchronous methods in v10

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None

      There are currently a series of asynchronous methods in the RealmUser class, e.g.

      public RealmAsyncTask logOutAsync(RealmApp.Callback<RealmUser> callback)

      This method requires passing a callback object and process the result asynchronously. This isn't a problem per se. However, in case this operation is carried out within a reactive stream, users would have to create an observable themselves and deal with the emission themselves as well.

      Having methods like

      public Single<RealmUser> logOut()

      would simplify things quite dramatically for API consumers.

            Assignee:
            Unassigned Unassigned
            Reporter:
            eduardo.lopezgutierrez@mongodb.com Eduardo López Gutiérrez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: