WyriHaximus · GitHub

@holtkamp

Copy link Copy Markdown

No description provided.

@holtkamp

@WyriHaximus

WyriHaximus

@holtkamp

Copy link Copy Markdown

Author

And while we are at it? Maybe a more (concrete) real life example on how to use this? Tried to understand the example and tried to use it, but I find it hard to understand...

Context: I try to use lazy Promises in a Queue to reduce the amount of used / allocated memory...

jsor

jsor approved these changes Jun 1, 2018

clue

clue approved these changes Jun 2, 2018

@jsor

Copy link Copy Markdown

Member

@holtkamp The LazyPromise is just a wrapper around a callback which produces the "real" promise only once then() is called on the LazyPromise. Since almost in all cases, then() is called immediately, it doesn't provide a real benefit and thus we decided to remove in for v3.0 (#98).

@jsor

@holtkamp

Copy link Copy Markdown

Author

@jsor thanks for the explanation!

@holtkamp

Read the original on github.com ↗