Nice work on this! It reads quite well and is better than my suggestion.  I think adding backticks around `pending` would help make it a bit more clear -- on first read I got confused because `pending` is being used as a noun (as it's the name of a method) but as a normal English word it's not a noun.  The backticks will help a bit in that regard.