2017-01-19から1日間の記事一覧
Swiftでまずリクエストプロトコルを作る。 public protocol Request { func getResult()->String } それを実装するFurureを作る。 public class Future:Request { private let semaphore:DispatchSemaphore = DispatchSemaphore(value: 0) private var ready…
Swiftでまずリクエストプロトコルを作る。 public protocol Request { func getResult()->String } それを実装するFurureを作る。 public class Future:Request { private let semaphore:DispatchSemaphore = DispatchSemaphore(value: 0) private var ready…