{"id":77335,"library":"retrofit2-kotlin-coroutines-adapter","title":"Retrofit 2 Kotlin Coroutines Adapter","description":"A CallAdapter.Factory for Kotlin coroutine's Deferred, enabling Retrofit to return Deferred from service methods.","status":"active","version":"0.9.2","language":"java","source_language":null,"source_url":"https://github.com/JakeWharton/retrofit2-kotlin-coroutines-adapter","tags":["retrofit","kotlin","coroutines","http-client"],"install":[{"cmd":"<dependency>\n  <groupId>com.jakewharton.retrofit</groupId>\n  <artifactId>retrofit2-kotlin-coroutines-adapter</artifactId>\n  <version>0.9.2</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:0.9.2'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"CoroutineCallAdapterFactory","correct":"com.jakewharton.retrofit2.adapter.kotlin.coroutines.CoroutineCallAdapterFactory"}],"quickstart":{"code":"import com.jakewharton.retrofit2.adapter.kotlin.coroutines.CoroutineCallAdapterFactory;\nimport retrofit2.Retrofit;\nimport retrofit2.converter.gson.GsonConverterFactory;\n\npublic class Quickstart {\n    public static void main(String[] args) {\n        Retrofit retrofit = new Retrofit.Builder()\n                .baseUrl(\"https://api.example.com/\")\n                .addCallAdapterFactory(CoroutineCallAdapterFactory.create())\n                .addConverterFactory(GsonConverterFactory.create())\n                .build();\n        // Use retrofit to create API service\n    }\n}","lang":"java","description":"Minimal example adding CoroutineCallAdapterFactory to a Retrofit instance."},"warnings":[{"fix":"Use Retrofit's suspend functions directly instead of Deferred adapter.","message":"This adapter is deprecated in favor of Retrofit's built-in coroutine support (suspend functions).","severity":"breaking","affected_versions":"<=0.9.2"}],"env_vars":null,"search_vec":"'2':2 'adapt':5 'calladapter.factory':7 'client':26 'coroutin':4,10,23 'defer':12,17 'enabl':13 'http':25 'http-client':24 'kotlin':3,9,22 'method':20 'retrofit':1,14,21 'return':16 'servic':19","created_at":"2026-06-17T19:55:31.754174+00:00","updated_at":"2026-06-17T19:55:31.754174+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/JakeWharton/retrofit2-kotlin-coroutines-adapter/","github":"https://github.com/JakeWharton/retrofit2-kotlin-coroutines-adapter","docs":"https://appdoc.app/artifact/com.jakewharton.retrofit/retrofit2-kotlin-coroutines-adapter/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["http-client","networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}