Re:Ask HN: What are some cool but obscure data structures yo...
by cauthon on Friday July 22, 2022 @12:04PM
(#32193539)
What is a promise in this context?
[ Parent
| on HN ]
Re:Ask HN: What are some cool but obscure data structures yo...
by cpburns2009 on Friday July 22, 2022 @12:11PM
(#32193663)
A promise is an object representing an asynchronous result. Some languages, such as Python, call them futures. A promise object will typically have methods for determining if result is available, getting the result if it is, and registering callback functions to be called with the result when it's available.