Future & Promises
Last updated
What is Future & Promises?
Futures and promises or simply Promises in programming is a pattern used for handling asynchronous operations. A Promise is an object that might produce a single value or error in the future either through a non-blocking way or in an asynchronous way. A Promise has three states - pending, resolved (success), and rejected (error). The Promise transitions from the Pending state to either an accomplished Resolved state, or Rejected state. These status changes are irreversible, meaning once the Promise reaches either Resolved or Rejected state, it cannot transition to any other state.
Free resources to learn Future & Promises
More in stage 16: Databases
Future & Promises: common questions
Can I learn Future & Promises in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Future & Promises in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Future & Promises tutorial for beginners?
It is lesson 90 of 156 in the free Server Side Game Developer roadmap, in stage 16, Databases. If you are new to Server Side Game Developer, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.