Skip to content

0.5.0

Compare
Choose a tag to compare
@ishkawa ishkawa released this 26 Mar 13:41
· 855 commits to master since this release
  • 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"
}