public static void HandleCallback(ClosureValue callback, Int64?jobIdToCancel) { try { callback.interpret(ApplicationContext.Get()); } finally { // gracefully dispose 1-time job timers (repeated jobs must call cancel) if (jobIdToCancel != null) { Timer timer; JOB_TIMERS.TryRemove((Int64)jobIdToCancel, out timer); } } }
public override IValue interpret(Context context) { return(method.interpret(context)); }