Unwrap a `Promise` of an `AsyncIterableIterator` into a `AsyncIterableIterator`.
npm install unwrap-async-iterable-iterator-promiseUnwrap a Promise of an AsyncIterableIterator into a AsyncIterableIterator.
``sh`
npm install --save unwrap-async-iterable-iterator-promise
`js
const unwrapAsyncIterableIteratorPromise = require('unwrap-async-iterable-iterator-promise')
function iterateOverItems () {
const iteratorPromise = getResource().then((resource) => {
return resource.iterateItems()
})
return unwrapAsyncIterableIteratorPromise(iteratorPromise)
}
`
Returns an async iterator that will wait for input` to resolve, and the yield the items from the resolved iterator.