Skip to content

Instantly share code, notes, and snippets.

@nitoyon
nitoyon / async_await_js.html
Created September 21, 2011 15:49
Test Implementation of .NET 5 `await` and `async` in JavaScript 1.7
<html>
<body onload="init2()">
<script type="application/javascript;version=1.7">
/*===========================================================================*
* Test Implementation of .NET 5 `await` and `async` in JavaScript 1.7
*===========================================================================*
* !!!!! This sample only works on Firefox !!!!!
* (Other browsers don't support `yield` statement)
*===========================================================================*
* use `async` function like: