Hi v8-users,

I'm new to v8.

For a "script" that has a call to a sync function that returns an integer, 
I figured I could do the following to get the result in C++:

v8::Local<v8::Value> result = script->Run(context).ToLocalChecked();
int result_int = result->Int32Value(context).FromJust();

I'm wondering if there's a way to get (i.e. make C++ aware of) the return 
value an async function? I tried to use await but it seems that the script 
won't compile.

-- 
-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/5f3cdb29-de2f-4a0b-b32a-fc8735788998o%40googlegroups.com.

Reply via email to