We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0a9fad commit e9e4b73Copy full SHA for e9e4b73
src/index.js
@@ -242,7 +242,7 @@ class Libp2p extends EventEmitter {
242
* Stop the libp2p node by closing its listeners and open connections
243
*
244
* @async
245
- * @returns {void}
+ * @returns {Promise<void>}
246
*/
247
async stop () {
248
log('libp2p is stopping')
@@ -601,7 +601,7 @@ class Libp2p extends EventEmitter {
601
* instance if one is not provided in options.
602
603
* @param {object} options - Libp2p configuration options
604
- * @returns {Libp2p}
+ * @returns {Promise<Libp2p>}
605
606
Libp2p.create = async function create (options = {}) {
607
if (options.peerId) {
0 commit comments