Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    Promises instead of Callbacks?

    Flic Hub SDK
    2
    3
    776
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • oskaremilsson
      oskaremilsson last edited by

      Is there any way of using Promises for stuff like Datastore.get() instead of callback?

      1 Reply Last reply Reply Quote 0
      • oskaremilsson
        oskaremilsson @Emil last edited by

        @Emil Ok, thanks for info 🙂

        1 Reply Last reply Reply Quote 0
        • Emil
          Emil FlicTeam last edited by

          Hi. Not right now, since we now use Duktape (https://duktape.org) as the javascript engine, which does not support promises and async. Maybe we will change to JerryScript or something in the future if there is a demand for this. We could potentially add some polyfill for promises but in that case I think it's better to get something that supports async.

          oskaremilsson 1 Reply Last reply Reply Quote 1
          • First post
            Last post