sync return a promise

2 posts, 0 answers
  1. Francesco
    Francesco avatar
    10 posts
    Member since:
    Jun 2015

    Posted 07 Mar Link to this post

    Hello,

    I could not find a dedicated place into the forum to request new features, so i posted here.

    I think that if everlive.sync() function will be more usefull and handy if it returns a promise.
    An event based approach sometimes can get really messy to track and maintain. It's no real easy way to track the flow of an app.

    I think something like follow code it's more usefull...

    var promise = el.sync();
    promise.then(function(syncInfo) {
      //promise resolved, syncInfo the same object of today
    }, function(syncInfo) {
      //promise rejected, syncInfo the same object of today
    }, function(evArgs) {
      //sync in progress, evArgs the same object of today
    });

    Thanks in advance,
    Francesco.
  2. Martin
    Admin
    Martin avatar
    67 posts

    Posted 09 Mar Link to this post

    Hi Francesco,

    Thank you for your feedback. We have already logged this in our backlog and will consider including it in future releases.

    Let us know if you have other suggestions.


    Regards,
    Martin
    Telerik
     
    Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
     
Back to Top