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

Add ConnectOnce to Signal #81

Merged
merged 1 commit into from
May 4, 2022
Merged

Add ConnectOnce to Signal #81

merged 1 commit into from
May 4, 2022

Conversation

Sleitnick
Copy link
Owner

ConnectOnce works the same as Connect, but disconnects itself after the first time it is triggered.

signal:ConnectOnce(function(...)
   print(...)
end)

signal:Fire("Hello") -- Connection will receive this
signal:Fire("Goodbye") -- Connection will NOT receive this (disconnected)

@Sleitnick Sleitnick merged commit 3f9635c into main May 4, 2022
@Sleitnick Sleitnick deleted the feature/signal-connectonce branch May 4, 2022 13:19
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

Successfully merging this pull request may close these issues.

1 participant