Instantly share code, notes, and snippets.

View PeriodicLiveData.java
package com.krillsson.android.example;
import android.arch.lifecycle.LiveData;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
public abstract class PeriodicLiveData<T> extends LiveData<T> {
private final int delay;