Skip to content

Commit

Permalink
Merge pull request #4108 from shaedrich/promise
Browse files Browse the repository at this point in the history
Add topic "Promise"
  • Loading branch information
kenyonj authored Dec 18, 2023
2 parents ef2a8bc + 4ae20d6 commit e20b981
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions topics/promise/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
topic: promise
display_name: Promise
short_description: A promise is an object returned by an asynchronous function, which represents the current state of the operation.
related: future, async-await, callback, deferred, coroutines, fiber, concurrency
wikipedia_url: https://en.wikipedia.org/wiki/Futures_and_promises
created_by: Barbara Liskov, Liuba Shrira, Mark S. Miller, Dean Tribble, Rob Jellinghaus, Daniel P. Friedman
released: 1988
---
A **promise** is an object returned by an asynchronous function, which represents the current state of the operation. At the time the promise is returned to the caller, the operation often isn't finished, but the promise object provides methods to handle the eventual success or failure of the operation.

0 comments on commit e20b981

Please sign in to comment.