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
The wait/signal usage pattern described in the Readme says that "signal puts the specified token back on the semaphore, or generates a unique new token and puts that back if none is passed". Looking at the signal method, however, it looks like it will never generate a new token. It will either use the provided token or use 1 as the token.
def signal(token = 1)
token ||= generate_unique_token
# other stuff
end
The text was updated successfully, but these errors were encountered:
The wait/signal usage pattern described in the Readme says that "signal puts the specified token back on the semaphore, or generates a unique new token and puts that back if none is passed". Looking at the
signal
method, however, it looks like it will never generate a new token. It will either use the provided token or use1
as the token.The text was updated successfully, but these errors were encountered: