You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello, I have a question about these codes.
pool.js
acquire(priority){if(this._started===false&&this._config.autostart===true){this.start()}if(this._draining){returnthis._Promise.reject(newError('pool is draining and cannot accept work'))}}
In this function the pool is started but if the pool had been drained the pool's status is still drained
Perhaps it will be a issue. I think if the pool has been drained then it will never be acquired.
The text was updated successfully, but these errors were encountered:
so this means in acquire() it will try to start the pool (but not succed), and then the next if statement will cause the method to return a rejected promise.
Does that make sense?
(I have to admit that these internals functions are a little messy and could have better internal interfaces)
hello, I have a question about these codes.
pool.js
In this function the pool is started but if the pool had been drained the pool's status is still drained
Perhaps it will be a issue. I think if the pool has been drained then it will never be acquired.
The text was updated successfully, but these errors were encountered: