Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Another look at callback hell, Practical solutions to asynchronous control flow

NotificationsYou must be signed in to change notification settings

strongloop-community/handling-callback-hell

Repository files navigation

Practical solutions to asynchronous control flow.

This example repo includes various approaches discussed in theaccompanying StrongLoop blog post on managing callback hell. It is required to run Node 0.11.x or higher for the generator examples.

All the dependencies are bundled in the project.

To run the test suite:

npmtest

To run individual examples, run each file directly:

node nested.js

Various Control Flow Approaches

  1. nested.js - a nested approach
  2. flat.js - a modular approach
  3. async.js - a async module approach
  4. promise - a promise approach
  5. generator - a generator approach
  6. q-generator - a promise/generator approach

Read the accompanying article for more details on the approaches. The Q Generator was an additional approach not mentioned in the article.

About

Another look at callback hell, Practical solutions to asynchronous control flow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp