kill() method for trashing smith
This commit is contained in:
parent
b77ed72611
commit
3f8faa4daa
1 changed files with 5 additions and 3 deletions
|
|
@ -712,7 +712,7 @@ function createUserReplica() {
|
|||
}
|
||||
|
||||
/**
|
||||
* @typedef {Smith.GunSmithNode & { reforge(): void }} RootNode
|
||||
* @typedef {Smith.GunSmithNode & { kill(): void }} RootNode
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
@ -727,8 +727,10 @@ const Gun = opts => {
|
|||
// signature
|
||||
return {
|
||||
...createReplica('$root'),
|
||||
reforge() {
|
||||
forge()
|
||||
kill() {
|
||||
currentGun.send('bye')
|
||||
currentGun.disconnect()
|
||||
currentGun.kill()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue