agrosner / DBFlow

A blazing fast, powerful, and very simple ORM android database library that writes database code for you.
MIT License
4.87k stars 598 forks source link

Async queries #1181

Closed rhespanhol closed 7 years ago

rhespanhol commented 7 years ago

DBFlow Version: 3.1.1 Issue Kind (Bug, Question, Feature): Question

Description: Is there any way to use async() to query a custom list?

agrosner commented 7 years ago

no but you can do it via:

database.beginTransactionAsync(new ITransaction() {
  @Override
  public void execute(DatabaseWrapper databaseWrapper) {
    List<Custom> list = ...queryCustomList(Custom.class); 
    // then do something with result.
  }
}).execute();