Skip to content
This repository has been archived by the owner on Apr 24, 2021. It is now read-only.

googlearchive/async_await_transformer_deprecated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages