INNER CODE UNIT · C#
Callback
sdesalas/trifleJS · Callback.cs:12
public class Callback
{
/// <summary>
/// A queue of pending callbacks that should be executed in
/// the V8 environment. This is used for event handling on
/// modules that use a separate thread (ie. ChildProcess),
/// as making the callback inside those threads does not
/// expose our current V8 environment.
/// </summary>
public static Queue<Callback> queue = new Queue<Callback>();
/// <summary>
/// Adds items to the callback queue
/// </summary>
/// <param name="id"></param>
/// <param name="arguments"></param>
public static void Queue(string id, bool once, params object[] arguments)
{