Hey Everyone, I am running into an issue where `Pr...
# javascript
d
Hey Everyone, I am running into an issue where
Promises
which are returned using
GlobalScope.promise {}
are executed immediately instead of lazily when the clients invoke
Promise#then
. I am able to lazy load the promise by setting the coroutinestart to
Lazy
and then calling
promise.deferred.start
from within the js code.. but its not really ideal. What I would expect is that the coroutine is kicked off when
.then
is invoked. Anyone run into this before?
1
t
executed immediately instead of lazily when the clients invoke 
Promise#then
 .
Looks like expected. Did you know standard promises with “lazily” behaviour?
Fast check in browser console:
Copy code
fetch("<http://httpbin.org/>")
Result - no “lazily” behaviour detected
d
You are correct, thank you