Skip to content

dzielins42/RxTasks

Repository files navigation

RxTasks

Small library to convert from Google's Task to RxJava2.

Release

Usage

  1. Setup with JitPack
  2. Use in code:
val task = Tasks.forResult(42)
task.asSingle().subscribe{ theAnswer -> searchQuestion(theAnswer) }

Java

RxTasks is build on kotlin extension functions, in order to use it in Java you need to use RxTasksKt as follows:

Task<Integer> task = Tasks.forResult(42);
RxTasksKt.asSingle(task).subscribe(theAnswer -> searchQuestion(theAnswer));

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages