add deferd.state(): Determine the current state of a Deferred object