Last active
August 30, 2019 17:48
-
-
Save AlekseyPleshkov/6507e4c7639249560c3ec64e3920f192 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| struct HomeWorker { | |
| // MARK: - Private Properties | |
| private let networkWorker = NetworkWorker() | |
| private let usersURL = URL(string: "https://jsonplaceholder.typicode.com/users") | |
| // MARK: - Public Methods | |
| /// Локальный Worker. Запрос к API на загрузку списка пользователей | |
| /// | |
| /// - Parameter complete: Возвращает загруженный список пользователей | |
| func fetchUsers(_ complete: @escaping ([User]?) -> Void) { | |
| // ... | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment