Skip to main content

Promise

A promise lets code share and wait for the eventual result of asynchronous work.

For example, two callers can await the same connection promise so only one connection is created. See also asynchronous initialization.

Share: