Change the name by `pendingRequests` and put the declaration as closer as possible to the `sync` function.