when IDLE watchers are present.
computePollTimeout
Compute the effective poll timeout, clamped by the next timer deadline.
Parameters
loop | Host event loop. |
timeoutMs | Requested timeout in milliseconds, -1 for infinite. |
Returns
Effective timeout, clamped to the next timer deadline or zeroed