Upload
masakazu-muraoka
View
689
Download
1
Embed Size (px)
Citation preview
Async flow control
2013.11.11 HTML5 Caravan TokyoBathtimefish 村岡 正和
basic & practice
HTML5-WEST.jp代表 / html5j マークアップ部 部長 / HTML5 Experts.jp メンバーGDG京都 / CSS Nite in OSAKA / 神戸ITフェスティバル実行委員など
むらおか まさかず
村岡正和
HTML5-WEST.jp
Webアプリケーション開発 IT業務システム設計/開発Webサービス導入/事業戦略コンサルティング
@bathtimefish
監修しました。
実例ごとの実装例がたくさん書いてあります。ウェブサイト制作やCMSの運用時に便利です。
好評販売中!!
JavaScript
that is puzzled !
function() { callback( function() { callback( function() { callback( function () { callback( function () { callback( function () { callback( function () { callback( function () { callback( function () { callback( function () {
post current position to server.
plz gime me a simple way like this...
solution...?
Some Async flow controllers
jQuery.Deferred
kriszyp/promised-io
caolan/async
alexeypetrushin/synchronize
creationix/step
gameclosure/ff
kriskowal/q
icedcoffeescript
jmr777/suspend
visionmedia/co
jQuery.Ajax()
plain coding
another way
http://wiki.commonjs.org/wiki/Promises/A
http://api.jquery.com/category/deferred-object/
テキスト
useing deferred/promise
https://github.com/kriszyp/promised-io
node.js module
http://dom.spec.whatwg.org/#promises
WHATWG DOM Spec
Runing on Chrome32
https://gist.github.com/bathtimefish/7337193
conrollers without Promise
https://github.com/caolan/async
caolan/async
Example
https://github.com/alexeypetrushin/synchronize
alexeypetrushin/synchronize
Example
creationix/step
https://github.com/creationix/step
Example
gameclosure/ff
https://github.com/gameclosure/ff
Example
kriskowal/q
https://github.com/kriskowal/q
Example
icedcoffeescript
http://maxtaco.github.io/coffee-script/
Example
http://msdn.microsoft.com/ja-jp/library/vstudio/hh191443.aspx
async / await (C#)
TypeScript Roadmap
http://typescript.codeplex.com/wikipage?title=Roadmap
future
ES6
Generator
http://wiki.ecmascript.org/doku.php?id=harmony:generators
Example
jmr777/suspend
https://github.com/jmar777/suspend
Example
visionmedia/co
https://github.com/visionmedia/co
good consideration
http://dailyjs.com/2013/10/17/yield/
JS have many way about async flow control.
wish your good choice !
Thanks!