It seems ListenableWorker no longer has the @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) restriction however I can\'t figure out or find examples on how to properly return a
As per the Threading in ListenableWorker documentation page:
You can create ListenableFutures one of two ways: If you use Guava, use ListeningExecutorService. Otherwise, include councurrent-futures in your gradle file and use CallbackToFutureAdapter.
You can create ListenableFutures one of two ways:
ListeningExecutorService