         }
     }
 
-    private func waitDispatchGroupIfNeeded() {
+    private func waitDispatchGroup() {
         var dispatchGroup: DispatchGroup?
 
         do {

        }
        else if let workItem = self.workItem {
            workItem.wait()
            waitDispatchGroupIfNeeded()

            guard let result = self.result else {
                fatalError("Task may be not properly finished. See `Task.finish(with: _)`.")

        self.init(result: nil)

        let block: () -> Void = {
            Thread.current.cancellableTaskBox = CancellableTaskBox(self)
            self._finish(with: Swift.Result(catching: closure))
        }

