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