Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25701] Add support for promises to Titanium and Alloy

GitHub Issuen/a
TypeImprovement
PriorityCritical
StatusClosed
ResolutionDone
Resolution Date2018-02-21T19:17:09.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsCLI
Labelsalloy, globals, javascript, promise, titanium
ReporterBrenton House
AssigneeUnknown
Created2018-01-24T14:28:03.000+0000
Updated2020-01-28T15:23:01.000+0000

Description

As a developer, I want to be able to use libraries that depend on JavaScript Promises, So that I can have out-0f-box support for a wider range of modules. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises I have been using JavaScript promises in my code for years but the only way to use modules that depend on Promises is to add support myself. It would be great if Titanium added built-in support for Promises. I think it would be a relatively small change. Just add bluebird (http://bluebirdjs.com/docs/getting-started.html) and add a global variable "Promise". Let me know if you have any questions. Thanks!

Comments

  1. Hans Knöchel 2018-02-21

    Available in 7.1.0 and later as part of the ES6+ support. No additional libraries required anymore.
  2. Eric Merriman 2018-08-06

    Closed as completed. If this is in error, please reopen.

JSON Source