From 9f42c18ff647d255c8a6e96356072f5d6c89a0ae Mon Sep 17 00:00:00 2001 From: Alexander Tesfamichael Date: Sun, 9 Apr 2017 18:18:06 +0200 Subject: [PATCH 1/2] Correct typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4be33d1e..6ce613b1 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ const pool = genericPool.createPool(factory, opts) Can be any object/instance but must have the following properties: -- `create` : a function that the pool will call when it wants a new resource. It should return a Promise that either resolves to a `resource` or rejects to an `Error` if it is unable to create a resourse for whatever. +- `create` : a function that the pool will call when it wants a new resource. It should return a Promise that either resolves to a `resource` or rejects to an `Error` if it is unable to create a resource for whatever. - `destroy`: a function that the pool will call when it wants to destroy a resource. It should accept one argument `resource` where `resource` is whatever `factory.create` made. The `destroy` function should return a `Promise` that resolves once it has destroyed the resource. From c7cfda783a9100582809c0ce476baf240f8ceee7 Mon Sep 17 00:00:00 2001 From: James Butler Date: Mon, 10 Apr 2017 11:53:16 +0100 Subject: [PATCH 2/2] Update README.md add missing word --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6ce613b1..b13ddd29 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ const pool = genericPool.createPool(factory, opts) Can be any object/instance but must have the following properties: -- `create` : a function that the pool will call when it wants a new resource. It should return a Promise that either resolves to a `resource` or rejects to an `Error` if it is unable to create a resource for whatever. +- `create` : a function that the pool will call when it wants a new resource. It should return a Promise that either resolves to a `resource` or rejects to an `Error` if it is unable to create a resource for whatever reason. - `destroy`: a function that the pool will call when it wants to destroy a resource. It should accept one argument `resource` where `resource` is whatever `factory.create` made. The `destroy` function should return a `Promise` that resolves once it has destroyed the resource.