{"categories":[],"image_url":null,"blog_title":"weblog.sy","url":"https://eswai.hatenablog.com/entry/2016/03/27/044412","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Feswai.hatenablog.com%2Fentry%2F2016%2F03%2F27%2F044412\" title=\"Future\u30d1\u30bf\u30fc\u30f3 - weblog.sy\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://eswai.hatenablog.com/","published":"2016-03-27 04:44:12","author_url":"https://blog.hatena.ne.jp/eswai/","provider_name":"Hatena Blog","description":"EventMachine\u3067Future(Promise)\u30d1\u30bf\u30fc\u30f3\u3059\u308b\u3068\u304d\u306e\u4f8b\u6587\u3092\u30e1\u30e2 GitHub - cotag/em-promise: A promise/deferred implementation for EventMachine require 'em-promise' def testMethod deferred = EM::Q.defer EM.defer do begin # database\u306a\u3069\u3092\u975e\u540c\u671f\u51e6\u7406 raise \"exception\" if [true, false].sample # \u30c6\u30b9\u30c8\u306a\u306e\u3067\u308f\u3056\u3068\u4f8b\u5916\u767a\u751f deferred.resolve('true') \u2026","version":"1.0","type":"rich","author_name":"eswai","provider_url":"https://hatena.blog","title":"Future\u30d1\u30bf\u30fc\u30f3","height":"190","width":"100%"}