Beispiel #1
0
 /// <inheritdoc />
 /// <summary>
 /// <see cref="M:jIAnSoft.Nami.Fibers.IFiber.Start" />
 /// </summary>
 public void Start()
 {
     if (_state == ExecutionState.Running)
     {
         return;
     }
     _state = ExecutionState.Running;
     _thread.Start();
 }
Beispiel #2
0
 /// <inheritdoc />
 /// <summary>
 /// Start consuming actions.
 /// </summary>
 public void Start()
 {
     if (_state == ExecutionState.Running)
     {
         return;
     }
     _state = ExecutionState.Running;
     _thread.Start();
     //flush any pending events in queue
     Enqueue(() => { });
 }