var result = db.query("select * from T"); // use result //=> what is the software doing while it queries the database, WAITING
Source: Programming with Mosh