I need to recursively call a function itself inside a .then() method. Something like this:
function poll(params) { const returned_promise = read_from_bac