/// <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; }
/// <summary> /// Stop the execution of the command /// </summary> public virtual void StopExecute() { IsActive = false; ExecutionStopped?.Invoke(this, EventArgs.Empty); }