Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
cujojs
when
Repository navigation
Code
Issues
59
(59)
Pull requests
8
(8)
Actions
Projects
Wiki
Security and quality
Insights
More
items
Home
Jump to bottom
Edit
New page
Brian Cavalier edited this page
Jul 2, 2014
·
38 revisions
Concepts
Promises/A+ spec
Tutorials
Async Programming Part 1: It's Messy
Async Programming Part 2: Promises
Async Programming Part 3: Finally
Patterns
Cookbook
- recipes for problem-solving with promises.
Anti-patterns
- things to avoid with promises and ways to avoid them.
Wiki pages
Pages
21
Loading
Home
Concepts
Tutorials
Patterns
Loading
Anti patterns
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Changelog
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Competive Races with when.any() some()
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Control concurrency with `map` and `guard`
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Cookbook
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Deferred
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Examples
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
First fulfilled promise by array order
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Overuse of join spread
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Promise
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Resolvers
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Return a default value for a promise that times out
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Using with Dojo
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Using with jQuery
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
when
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
when apply
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
when cancelable
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
when debug
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
when delay
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
when timeout
Uh oh!
There was an error while loading.
Please reload this page
.
Show 6 more pages…
Add a custom sidebar
Clone this wiki locally
You can’t perform that action at this time.