dojo/promise

authors:Mark Wubben
since:V1.8

dojo/promise is the package that manages promises, or in other words, communication between asynchronous threads.

Introduction

Promises are the programming concept that allow easier programming of non-blocking asynchronous code. The dojo/promise module is Dojo’s implementation of the concept. The module is made up dojo/promise/Promise and two helper modules dojo/promise/all and dojo/promise/first. Related modules are dojo/Deferred, dojo/when and dojo/errors/CancelError.

  • dojo/promise/Promise

    The abstract base class that defines Dojo Promises.

  • dojo/promise/all

    Takes multiple promises and returns a new promise that is fulfilled when all promises have been fulfilled.

  • dojo/promise/first

    Takes multiple promises and returns a new promise that is fulfilled when the first of the promises have been fulfilled.

See also

Table of Contents

Error in the documentation? Can’t find what you are looking for? Let us know!