beginner40 minby DevFox

Promise<T>

Learn what a promise is: an object a function gives back at once, standing for a result still to come, pending until it is fulfilled. Make one with new Promise and resolve, run code with its value in then, read Promise<T> the way you read Array<T>, and give TaskKit a delay() helper and a remind command that waits before it prints.

  • TypeScript
  • Fundamentals
`Promise<T>`. Read this lesson at .