This is a migrated thread and some comments may be shown as answers.

sync return a promise

1 Answer 39 Views
JavaScript SDK
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Francesco
Top achievements
Rank 1
Francesco asked on 07 Mar 2016, 09:24 AM

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.

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 09 Mar 2016, 04:37 PM

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.
 
Tags
JavaScript SDK
Asked by
Francesco
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or