# Guide: Asynchronous side-effects in testing

**URL:** <https://discuss.emberjs.com/t/guide-asynchronous-side-effects-in-testing/2905>\
**Category:** Uncategorized\
**Created:** [October 8, 2013, 3:28pm UTC](https://discuss.emberjs.com/t/guide-asynchronous-side-effects-in-testing/2905 "2013-10-08T15:28:16Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![juarezpaf](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/juarezpaf/32/14940_2.png) [@juarezpaf](https://discuss.emberjs.com/u/juarezpaf)\
**Post date:** [October 10, 2013, 9:46am UTC](https://discuss.emberjs.com/t/guide-asynchronous-side-effects-in-testing/2905/6 "2013-10-10T09:46:59Z")

</div>

Hey guys… I am using normal Em.$.ajax() in my app using return Em.$.ajax(…).then(), but I started to look some presentations and materials talking about RSVP and promises. What is the best way to ensure that multiples requests follow a sequence and the second request wait to start when the first request ends? Sometimes I need to do two or more dependents Ajax requests.

---

_[View the full topic](https://discuss.emberjs.com/t/guide-asynchronous-side-effects-in-testing/2905)._
