We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when attempting to compose a release function, e.g. so that re-requesting the lock (if it exists) returns the release function, it fails stating:
TypeError: method is not a function
Example implementation:
const release = getLock(file); let released = false; locks[file] = () => { if (!released) { released = true; release(); delete locks[file]; } };
Suspected cause: you're using function composition so that even with an arrow function, somehow scope is lost and method returns as undefined
The text was updated successfully, but these errors were encountered:
Still seeing this, but I may have resolved this.. it was a user error
Sorry, something went wrong.
No branches or pull requests
when attempting to compose a release function, e.g. so that re-requesting the lock (if it exists) returns the release function, it fails stating:
TypeError: method is not a function
Example implementation:
Suspected cause: you're using function composition so that even with an arrow function, somehow scope is lost and method returns as undefined
The text was updated successfully, but these errors were encountered: