вроде только можно ?
const getCBR = () => new Promise((resolve, _reject) => { ... resolve(result) } это тоже самое что const getCBR = async () => { ... return result; } просто вместо resolve ты пишешь return
Обсуждают сегодня