         self.gistItems = []
         self.followingUsers = []
         if let userName = KeychainService.get(forKey: .userName) {
-            load(userName: userName)
+            load(userName: userName) {
+                DispatchQueue.main.async {
+                    self.refreshControl!.endRefreshing()
+                }
+            }
         }
-        self.refreshControl!.endRefreshing()
     }
 
     // UserのFollowsのGistを読み込む
-    func load(userName: String) {
+    func load(userName: String,
+              loadComplete: @escaping () -> Void) {
         let client = GitHubClient()
         let request = GitHubAPI.GetUsersFollowing(userName: userName)
 

        self.tableView.rowHeight = UITableViewAutomaticDimension

        if let userName = KeychainService.get(forKey: .userName) {
            load(userName: userName)
        }
    }


            case let .success(response):
                self.followingUsers = response
                self.loadFollowingUsersGists(client: client)
                loadComplete()
            case .failure(let error):
                logger.error(error)
                loadComplete()
            }
        }
    }
