Hacker News new | ask | show | jobs
by nathan_tarbert 931 days ago
I looked through the docs and I don't see any async methods, is that built into inflight like this code snippet I found?

queue.setConsumer(inflight (body: str): str => { let next = counter.inc(); let key = "myfile-{next}.txt"; bucket.put(key, body); });

1 comments

Yap, all inflight code is async by default.
Ok, thanks for clarifying. That is pretty slick