Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Kotlin Coroutines Adapter

A [CallAdapter.Factory] for use with kotlin coroutine's Deferred.


Pass CoroutineCallAdapterFactory as parameter to Syndication.

val syndicationReader = Syndication(
  url = "",
  callFactory = CoroutineCallAdapterFactory()

create and interface like the one below

interface RssReader {

  fun readRss(): Deferred<RssFeed>

  fun readAtom(): Deferred<AtomFeed>

then let Syndication class generates an implementation of that interface RssReader:

val reader = syndicationReader.create(
val rssFeed = runBlocking { reader.readRss() }
val atomFeed = runBlocking { reader.readAtom() }


Download the latest JAR or grab via Gradle:

implementation 'com.ouattararomuald:syndication-kotlin-coroutines-adapter:0.1.0-rc.1'

or Maven:


Snapshots of the development version are available in Sonatype's snapshots repository.