swift#asynchronous

malcommac/Hydra コードレビュー2 (then)

概要 前回HydraのPromiseについてコードを読んでいった 今回はPromiseを使う上で無視できないthenを深掘りしていく then Hydra/Promise+Then.swift at master · malcommac/Hydra · GitHub 定義を見ていく @discardableResult public func then<N>( in context: </n>…

malcommac/Hydra コードレビュー1 (Promise)

概要 github.com 軽量なPromiseライブラリ Async&Awaitもサポートしてる 便利な独自オペレータも豊富で使い勝手が良い 導入 軽量を謳ってるだけあって依存してるライブラリもなくシンプルにHydraAsyncのみの導入だけで良い cocoapods pod 'HydraAsync' cart…

(discord/swift/2018/03/12/0) Swift IRGenがcoroutineをサポートした件について

概要 discord ios dev #swift 2018/03/12 Swift IRGenがcoroutineをサポートした log omochimetaru - 03/12 12:47 github.com コルーチンの下回り進んでた koher - 03/12 01:04 コルーチンって正式な Proposal になってないけど、表面的なシンタックスは別と…

(discord/swift/2018/03/08/0) concurrentMapの実装について

概要 discord ios dev #swift 2018/03/08-09 concurrentMapの実装について log norio_nomura - 3/8 09:09 talk.objc.io に出てきたconcurrentMap extension Array { func concurrentMap<B>(_ transform: @escaping (Element) -> B) -> [B] { var result = Array<B?></b?></b>…