mpao
6/9/2018 - 9:05 PM

access room dao methods on a background task in two line of code

access room dao methods on a background task in two line of code

Executor executor = Executors.newFixedThreadPool(1);
        executor.execute(() -> database.buildingDao().method(params));