@Documented
@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface SkipCallbackExecutor
Call<BodyType> return type to not use the callback executor for invoking the onResponse or onFailure methods.
@SkipCallbackExecutor
@GET("user/{id}/token")
Call<String> getToken(@Path("id") long id);
This annotation can also be used when a CallAdapter.Factory explicitly delegates
to the built-in factory for Call via Retrofit.nextCallAdapter(CallAdapter.Factory,
Type, Annotation[]) in order for the returned Call to skip the executor. (Note: by
default, a Call supplied directly to a CallAdapter will already skip the callback
executor. The annotation is only useful when looking up the built-in adapter.)