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

Question: Reasoning behind :AddPromise() not having an index parameter? #25

Open
Nidoxs opened this issue Jun 4, 2022 · 1 comment
Open

Comments

@Nidoxs
Copy link

Nidoxs commented Jun 4, 2022

Hey, I was just wondering what the reasoning was for :AddPromise() not having an index parameter that I can then use when using :Remove()? Genuinely curious as I was about to use it but noticed it didn't have that parameter on the documentation.

Thanks.

@Nidoxs Nidoxs changed the title Question: Reasoning behind :AddPromise() not having an index parameter. Question: Reasoning behind :AddPromise() not having an index parameter? Jun 4, 2022
@howmanysmall
Copy link
Owner

howmanysmall commented Jun 4, 2022

Cause it's automatically removed once the promise is resolved at all.

Janitor:AddPromise(Promise.defer(function(Resolve) Resolve() end)):cancel() will immediately remove it.

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

2 participants