Skip to content

Commit

Permalink
Merge pull request #189 from AlexTes/patch-1
Browse files Browse the repository at this point in the history
Correct typo
  • Loading branch information
James Butler committed Apr 10, 2017
2 parents 7865e04 + c7cfda7 commit d895386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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 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.


Expand Down

0 comments on commit d895386

Please sign in to comment.