This repository has been archived by the owner on Feb 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
reconcile Future/Promise #245
Comments
related #221 |
This was referenced Jun 25, 2015
This is now becoming an issue for JS interop |
yeah, just wanted to add an update: this is something we're definitely doing, only question is when it happens. Probably after we've gotten the Dart language tests and modular compilation in a good place. |
and SDK issue is dart-lang/sdk#24679 |
This issue was moved to dart-lang/sdk#27315 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For JS interop, it would be ideal if we could adapt Dart Futures to implement the Promise interface.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
This will also ease DOM interop as Promise becomes more common.
Ideally, Dart Future actually is a JS Promise, simply exposing different user-facing APIs (similar to Dart builtin List type and JS Array). But we could also try adapters, similar to Dart Iterable objects exposing a
[Symbol.iterator]()
method to JS, and Dart for-each consuming JS Iterables.The text was updated successfully, but these errors were encountered: