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
It would be easy enough to wait for either ctx.Done() or for a resource to become available.
The text was updated successfully, but these errors were encountered:
This was written long before the context package. I plan to refactor it to take a context.
Sorry, something went wrong.
I'm thinking of adding AcquireContext.
AcquireContext
Now there is AcquireContext and you can use a context.WithCancel if required. https://godoc.org/github.com/abiosoft/semaphore#Semaphore.AcquireContext.
context.WithCancel
AcquireWithin has also been modified to simply use a context.WithTimeout.
AcquireWithin
context.WithTimeout
No branches or pull requests
It would be easy enough to wait for either ctx.Done() or for a resource to become available.
The text was updated successfully, but these errors were encountered: