Created
August 17, 2020 00:26
-
-
Save victorpanitz/82e9e898b14cde099e5a3e80507b58f6 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
class FakeURLSession: URLSession { | |
static var tasksToBeReturned: [URLSessionTask] = [] | |
@objc func _getAllTasks(completionHandler: @escaping ([URLSessionTask]) -> Void) { | |
completionHandler(Self.tasksToBeReturned) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment