Repeatedly reattempt calls to functions that return promises with delays and maximum attempt limits.