On Tue, Apr 15, 2014 at 8:29 PM, vikas singh <[email protected]> wrote:
> Is there a EventQueue/TaskQueue in V8? If yes then is it Unbounded?. And
> suppose if it is unbounded then theoretically if a create of lots of events
> then it may Go OutOfMemory. I am asking this question because normally we
> use bounded queue. So that we could create back-pressure on the system
> instead crashing it.

Do you mean the microtask queue that's used for promises and observer
events?  It's unbounded (it's a basic JS array) that gets flushed
frequently, usually right before most V8 API functions return.  You
can force-flush it with V8::RunMicrotasks().

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to