Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

reconcile Future/Promise #245

Closed
jmesserly opened this issue Jun 25, 2015 · 5 comments
Closed

reconcile Future/Promise #245

jmesserly opened this issue Jun 25, 2015 · 5 comments

Comments

@jmesserly
Copy link
Contributor

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.

@jmesserly
Copy link
Contributor Author

related #221

@jacob314
Copy link
Contributor

jacob314 commented Jan 4, 2016

This is now becoming an issue for JS interop

@jmesserly
Copy link
Contributor Author

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.

@jmesserly
Copy link
Contributor Author

and SDK issue is dart-lang/sdk#24679

@jmesserly
Copy link
Contributor Author

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.
Development

No branches or pull requests

2 participants