0.5.0
- Add
cancelRequest(_:passingTest:)
for canceling.
Now, you can cancel request by passing class of Request
like this:
GitHub.cancelRequest(GitHub.Endpoint.SearchRepositories.self)
If you want to filter requests, add closure that identifies the request shoule be cancelled or not.
GitHub.cancelRequest(GitHub.Endpoint.SearchRepositories.self) { request in
return request.query == "APIKit"
}