Okay, okay. Before we get into it, I know there is a post on this topic. But, I don’t really understand what it’s needed for and what’s the importance of it. I’ve read through it several times, but I can’t seem to understand it. An explanation would be really nice, thanks!
1 Like
Basically, Promises are a container for a value that will eventually exist in the future. Promises help you continue running your code instead of waiting. This is typically used on yielding functions such as HTTP requests, but can be applied to a series of functions, a tween, datastores, or a RemoteFunction. More examples can be found in the docs here.
Instead of waiting for a value, you create a Promise that will do something with a value that doesn’t exist right now sometime later.
2 Likes
Thank you so much for the explanation, I was having trouble understanding the words in the docs cuz my language isn’t English.
1 Like