Async flow control
basic & practice

2013.11.11 HTML5 Caravan Tokyo
Bathtimefish 村岡 正和
むらおか まさかず

村岡正和
@bathtimefish
Webアプリケーション開発 IT業務システム設計/開発
Webサービス導入/事業戦略コンサルティング
HTML5-WEST.jp代表 / html5j マークアップ部 部長 / HTML...
監修しました。

実例ごとの実装例がたくさん書いてあ
ります。ウェブサイト制作やCMSの運
用時に便利です。

好評販売中!!
JavaScript
that is puzzled !
function() {
callback( function() {
callback( function() {
callback( function () {
callback( function () {
callback( funct...
post current position to server.
plz gime me a simple way like this...
solution...?
Some Async flow controllers

jQuery.Deferred

gameclosure/ff

kriszyp/promised-io

kriskowal/q

caolan/async

icedcoffeescr...
jQuery.Ajax()
plain coding
another way
http://wiki.commonjs.org/wiki/Promises/A
テキスト

http://api.jquery.com/category/deferred-object/
useing deferred/promise
node.js module

https://github.com/kriszyp/promised-io
WHATWG DOM Spec

http://dom.spec.whatwg.org/#promises
Runing on Chrome32

https://gist.github.com/bathtimefish/7337193
conrollers without Promise
caolan/async

https://github.com/caolan/async
Example
alexeypetrushin/synchronize

https://github.com/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

async / await (C#)
http://msdn.microsoft.com/ja-jp/library/vstudio/hh191443.aspx
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!
Upcoming SlideShare
Loading in …5
×

Async flow controll basic and practice

1,152 views

Published on

Published in: Technology, Business
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,152
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
5
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Async flow controll basic and practice

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

×