/// <inheritdoc /> public Task BeginRunAsync() { CurrentSimpleExecutionState = DefaultExecutionState.RunningTopLevel; _llvmContext.ExecuteFunctionTopLevel(RuntimeName, IsAsync); ExecutionStopped?.Invoke(this, new ExecutionStoppedEventArgs(this)); CurrentSimpleExecutionState = DefaultExecutionState.Idle; return(Task.CompletedTask); }
/// <inheritdoc /> public void StartRun() { CurrentSimpleExecutionState = DefaultExecutionState.RunningTopLevel; if (!RebarFeatureToggles.IsLLVMCompilerEnabled) { _context.ExecuteFunctionTopLevel(CompiledName); } else { _llvmContext.ExecuteFunctionTopLevel(RuntimeName); } ExecutionStopped?.Invoke(this, new ExecutionStoppedEventArgs(this)); CurrentSimpleExecutionState = DefaultExecutionState.Idle; }