tombyrer
Explore posts from serversreturn early from Promise loop
Platform: Clouldflare Workers & KV
So I have a form where that I use to search in my KV storage & return matches. Seems the standard that Hono uses is a
Promise.all()
& .map
inside that. But after I got all the matches I want, it still loops the Promises/map. How do I stop the Promise/map loop, & return the matches?
(Might be more a general JS question, sorry. But is for my Hono/CF project. TIA)3 replies