gmail-batch-stream icon indicating copy to clipboard operation
gmail-batch-stream copied to clipboard

Add notes about google api promises to docs

Open motin opened this issue 7 years ago • 0 comments

For whatever reason, the pseudo gmail client returned promises, causing havoc in this library.

In the end, I had to change the usage example to resolve promises using .flatMap(_h) before piping to gbs:

.flatMap(_h) // resolve promises
.pipe(this.googleBatchStream.pipeline(1, 5))

and

.flatMap(_h) // resolve promises
.pipe(GBS.pipeline(100, 5)) //Run in batches of 100. Use quota of 5 (for users.messages.get).

motin avatar Dec 14 '18 00:12 motin