Comment

Comment by dragonwriter

> Any function that calls another that returns a Promise will have to return a Promise to represent completion correctly

No, it doesn't, closures let you update values in the wcope of the parent in .then() callbacks and then you can loop in the function and wait for completion and return a non-Promise value.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton