typescript api

pull/1947/head
Ludea 9 months ago committed by GitHub
parent 3a5210cc06
commit 9ebfbf0296
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -339,6 +339,20 @@ class Child {
pid: this.pid pid: this.pid
}) })
} }
/**
* Waits for the child to exit completely, returning the status that it exited with.
*
* @returns A promise with ExitStatus.
*
* @since 2.0.2
*/
async wait(): Promise<void> {
await invoke('plugin:shell|wait', {
cmd: 'waitChild',
pid: this.pid
})
}
} }
interface CommandEvents { interface CommandEvents {

Loading…
Cancel
Save