[v8-users] How to insert a Javascript function into V8's event loop?

2015-11-19 Thread Nasser Torabzade
Hi,

I'm trying to develop a nodejs addon aimed to insert a Javascript function 
into event loop of internal V8 instance of nodejs.

My current solution uses `uv_queue_work()` function from libuv library 
 which can do this for a C function, but how should I 
achieve this for a Javascript function?

thanks.

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [v8-users] How to insert a Javascript function into V8's event loop?

2015-11-19 Thread Jakob Kummerow
V8 doesn't have an event loop.

Have you tried *calling* your function?

On Thu, Nov 19, 2015 at 9:02 AM, Nasser Torabzade <
nasser.torabz...@gmail.com> wrote:

> Hi,
>
> I'm trying to develop a nodejs addon aimed to insert a Javascript function
> into event loop of internal V8 instance of nodejs.
>
> My current solution uses `uv_queue_work()` function from libuv library
>  which can do this for a C function, but how should I
> achieve this for a Javascript function?
>
> thanks.
>
> --
> --
> v8-users mailing list
> v8-users@googlegroups.com
> 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 v8-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.