Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.
Optionalonfinally: (() => void) | null
The callback to execute when the Promise is settled (fulfilled or rejected).
A Promise for the completion of the callback.
Both a one-shot poll and an endless feed over one
GetRecent*query:await feeddoes a singlegetUpdates()(the 10.0.0 behaviour),for await (const item of feed)polls forever. Nothing is requested until one of the two is used. Cancel a feed withsignal; the loop then throws the abort reason.