Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Holding references in C# to functions that exist in JS and cleanup

$
0
0
No problem at all!

Just to clarify, each V8 runtime supports single-threaded access only, but multiple runtimes can operate concurrently. In ClearScript, the V8ScriptEngine constructor creates a private runtime for each instance, but you can also create a runtime explicitly, and then call V8Runtime.CreateScriptEngine() to create one or more engines that share that runtime. Engines that share a runtime cannot be used concurrently.

Cheers!

Viewing all articles
Browse latest Browse all 2297

Trending Articles