document pending() method