Returns a function that calls f at most once per wait milliseconds:
the first call runs immediately, calls during the window are coalesced into
one trailing call.
Aborting signal drops the pending trailing call and makes further calls
no-ops; a call after abort never reaches f.
Returns a function that calls
fat most once perwaitmilliseconds: the first call runs immediately, calls during the window are coalesced into one trailing call.Aborting
signaldrops the pending trailing call and makes further calls no-ops; a call after abort never reachesf.