diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-03-05 03:11:25 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-03-05 03:11:25 +0300 |
commit | 1dc7bc0ceefc400b8c4637e132e234a40d3b783d (patch) | |
tree | 84757a1d29c6645372d69175e0214f33ce1479ab /README.md | |
parent | fa6aa6729d6c8f35ff85fbebe5a345f6218221dd (diff) |
doc: `client.destroy` takes a callback
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -320,9 +320,9 @@ ready). See the torrent section for more info on what methods a `torrent` has. Remove a torrent from the client. Destroy all connections to peers and delete all saved file data. If `callback` is specified, it will be called when file data is removed. -#### `client.destroy()` +#### `client.destroy([function callback (err) {}])` -Destroy the client, including all torrents and connections to peers. +Destroy the client, including all torrents and connections to peers. If `callback` is specified, it will be called when the client has gracefully closed. #### `client.torrents[...]` |