Chanining async functions

2 posts, 0 answers
  1. Chris
    Chris avatar
    14 posts
    Member since:
    Oct 2012

    Posted 08 Apr 2013 Link to this post

    Hi I struggling to make Icenium's async calls a little more manageable. Ideally I'd like to use something like promises in Jquery but I don't think it supports them. Currently I have

        window.requestFileSystem(LocalFileSystem.PERSISTENT, 0,onFSWin  , onFSFail);

    which calls   

    function onFSWin(fileSystem) {
            fileSystem.root.getDirectory("Icenium Demo", {create: false, exclusive: false}, onGetDirectoryWin, onGetDirectoryFail);
    As you can imagine 4-5 async calls chained together becomes quite messy. Can anyone recommend a way of dealing with this
  2. Jordan
    Jordan avatar
    197 posts

    Posted 10 Apr 2013 Link to this post

    Hello Chris,

    I'm not aware of async wrapper over Cordova file API.

    But as it closely resembles WC3 File API you may be able to adapt this github library or the idea behind in your own wrapper.

    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Kendo UI Dojo.
Back to Top