apiRequest() { userInfoModel.request { [weak self] result in switch result { case .success(let userInfo): self?.repositoryListModel.request(userId: userInfo.userId) { result in switch result { case .success(let repositoryList): self?.label.text = repositoryList.map { $0.title }.joined(separator: "\n") case .failure(let error): print(error) } } case .failure(let error): print(error) } } }