Guest User

Untitled

a guest
Jul 22nd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. try {
  2. asyncCall1(err, data, function() {
  3. if (err) {
  4. console.log("Threw an error: " + err);
  5. }
  6. asyncCall2(err, data, function() {
  7. if (err) {
  8. console.log("Threw an error: " + err);
  9. }
  10. asyncCall3(err, data, function() {
  11. if (err) {
  12. console.log("Threw an error: " + err);
  13. }
  14. asyncCall4(err, data, function() {
  15. if (err) {
  16. console.log("Threw an error: " + err);
  17. }
  18. console.log("All done!");
  19. });
  20. });
  21. });
  22. });
  23. } catch(err) {
  24. console.log("Threw an error: " + err);
  25. }
Add Comment
Please, Sign In to add comment