• 5
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

I am using a Retrofit service interface that generates my Call objects, very much like the example one they show:

public interface GitHubService {
    @GET("users/{user}/repos")
    Call<List<Repo>> listRepos(@Path("user") String user);
}

I would like to be able to cancel all Call objects generated by the listRepos method that have been enqueued or are running. I see that I can add a tag to the Call object's Request builder, but how can I swap the Request on a Call? It does not seem like I can modify the Request of a Call after it has already been created.