Clone this repo:
  1. 2e61461 Update README with link by Filip Hracek · 8 years ago master
  2. 8aa5360 Update README.md by Seth Ladd · 10 years ago
  3. 0a6a406 Merge pull request #86 from kmillikin/issue-83 by Kevin Millikin · 10 years ago
  4. ae03e0c Properly translate for-in and await for-in without a declaration keyword. by Kevin Millikin · 10 years ago
  5. a6d2c3e Merge pull request #80 from kmillikin/issue-79 by Kevin Millikin · 10 years ago

async-await transformer DEPRECATED

Use Dart 1.9+ for native support for async/await/sync/async/yield.**

A prototype (and in progress) implementation of async/await in Dart, via CPS translation.

This transformer is useful for trying async/await with dart2js. The Dart VM natively supports async and await. If you are writing Dart code that runs only in the VM, you do not need this transformer.

How to use

Add this to your pubspec.yaml file:

dependencies:
  async_await:
    git: https://github.com/dart-lang/async_await.git
transformers:
- async_await

Import dart:async in your Dart file:

import 'dart:async';

What works

  • async
  • await
  • await for

What doesn't yet work

See also the open issues.

  • Stack traces are not according to the spec