Skip to content
New issue

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

Using "after" function makes "stop" function fail #1

Open
lmfff opened this issue May 9, 2022 · 1 comment
Open

Using "after" function makes "stop" function fail #1

lmfff opened this issue May 9, 2022 · 1 comment

Comments

@lmfff
Copy link

lmfff commented May 9, 2022

Hi! Not sure you're still maintaining this repo but I'm using it and found this issue.
This code:

t = tick.delay(function() print("cat") end, 1)
  :after(function() print("dog") end, 1)
t:stop()

seems to cause t:stop() to fail and t to be executed anyways.

Thanks!

@lmfff
Copy link
Author

lmfff commented May 10, 2022

This syntax solves the issue

t = tick.delay(function() print("cat") end, 1)
t:after(function() print("dog") end, 1)
t:stop()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant