Easy:
- make an ordinary Clojure function
query-pokemon-listfor the query - The query is blocking, and Electric Clojure is async, so use
e/offloadto move it to a thread pool.- (Don't block the event loop!)
e/offloadthrowsPendinguntil the query finishes, and then the exception "goes away"