docs: how to use the pending queue API