Example #1
0
 /// <inheritdoc />
 public Task BeginRunAsync()
 {
     CurrentSimpleExecutionState = DefaultExecutionState.RunningTopLevel;
     _llvmContext.ExecuteFunctionTopLevel(RuntimeName, IsAsync);
     ExecutionStopped?.Invoke(this, new ExecutionStoppedEventArgs(this));
     CurrentSimpleExecutionState = DefaultExecutionState.Idle;
     return(Task.CompletedTask);
 }
Example #2
0
 /// <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;
 }