You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
IntroductionIn this post, we’ll explore building a proof-of concept implementation of Futures and Promises. One of my favorite features of the Swift language is that functions are first-class citizens. Swift’s support for returning functions from functions, accepting functions as function parameters, and Swift’s support for closures let us do some neat things, one of which is building support for
Blocksのコールバックを使ってるとコールバック地獄に陥りやすいですよね。 (例:ボタンタップ→アラート確認→通信→通信結果を元に...) この問題を解決する為のライブラリを作るにあたって、 参考にさせていただいたライブラリを尊敬の念をこめつつ以下に挙げておきます。 実現したいこと 引用ですが、以下のことをiOSで実現したいと考えています。 非同期処理を同期的に書く 「同期的に」とはどういうことか? 代表的な要件としては ネストが入れ子にならない 上から下に読んで実行フローが把握できる 非同期処理の結果得られた値を次の処理に引き回せる try/catchで素直に例外を捕捉できる generatorとJavaScriptの非同期処理 future/promise, jQuery.Deferredについて 既存のiOSライブラリは、ほとんどがJavascript界隈での同種の問題解決に用いら
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く