Skip to content

Instantly share code, notes, and snippets.

View langleyd's full-sized avatar

David Langley langleyd

  • Element
  • Dublin, Ireland
  • 11:45 (UTC +01:00)
View GitHub Profile
@langleyd
langleyd / ExampleUse.kt
Last active March 14, 2017 17:46
Reactive extensions for GoogleApiClient using Kotlin/RxJava
/* Example use of the GoogleApiClient reatcive extions sketched out below and how we can use them to
* 1. Create an api client
* 2. Make a couple of serial api calls
* 3. Clean up the api client
*/
// Let's create a refernce to a lambda we can use to clean up the client when we are finished with it.
var destroy: (() -> Unit)? = null
//Create our api client with the APIs we need to use