MCPcopy Create free account
hub / github.com/coopernurse/node-pool / allocate

Method allocate

lib/PooledResource.js:20–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19 // mark the resource as "allocated"
20 allocate() {
21 this.lastBorrowTime = Date.now();
22 this.state = PooledResourceStateEnum.ALLOCATED;
23 }
24
25 // mark the resource as "deallocated"
26 deallocate() {

Calls

no outgoing calls

Tested by

no test coverage detected