* @param {!Promise<!Result>} result The command result. * @param {function(string)} onKill The function to call when #kill() * is called.
(result, onKill)
| 89 | * is called. |
| 90 | */ |
| 91 | constructor(result, onKill) { |
| 92 | COMMAND_RESULT.set(this, result) |
| 93 | KILL_HOOK.set(this, onKill) |
| 94 | } |
| 95 | |
| 96 | /** |
| 97 | * @return {!Promise<!Result>} A promise for the result of this |