     }
 
     func testBackgroundExecution() {
-        func doNothing(forTimeInterval timeInterval: TimeInterval, completionHandler: @escaping () -> Void) {
-            DispatchQueue.global().asyncAfter(deadline: .now() + timeInterval) {
-                completionHandler()
-            }
-        }
-
         var value = 0
         var taskCount = 0
 

        XCTAssert(value == 5)
    }
}

        var value = 0

        func doSomething1() -> Task<Void, Error> {
            return async { t in
                doNothing(forTimeInterval: 1) {
                    guard !t.isCancelled else {
                        return
                    }

                    value += 1
                    t.finish()
                }
            }
        }

