# Promises in Newman and Postman

**URL:** <https://community.postman.com/t/promises-in-newman-and-postman/57504>\
**Category:** Help Hub\
**Tags:** newman-project\
**Created:** [February 9, 2024, 4:10pm UTC](https://community.postman.com/t/promises-in-newman-and-postman/57504 "2024-02-09T16:10:09Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [February 9, 2024, 5:44pm UTC](https://community.postman.com/t/promises-in-newman-and-postman/57504/4 "2024-02-09T17:44:31Z")

</div>

There are a few different topics created around the same topic - This is the one that I recall had a lot of activity before that change was made.

> [@Using native javascript promises in postman](https://community.postman.com/t/using-native-javascript-promises-in-postman/636):
>
> Hi, Javascript and node now has native support for Promises. I was hoping we could use these in Postman and newman as well to chain async sendRequest calls. Although declaring and using new Promise works but chaining does not work. For example look at the code below (put this in test script of any request) var promiseMethod = function(text) { var promise = new Promise(function(resolve, reject){ console.log('Enter: ' + text); setTimeout(function() { console.log('Comple…

I might need to point you in the direction of @kevin.swiber for more granular information here, they know far more than I will ever know.

---

_[View the full topic](https://community.postman.com/t/promises-in-newman-and-postman/57504)._
