Property | Type | Description | |
---|---|---|---|
CancelContinuation | void | ||
CheckTimeout | int | ||
DelayCoroutine | IEnumerator | ||
Execute | |||
FaultContinuation | void | ||
FinishCompletion | void | ||
Stop | |||
WhenAllFibersCoroutine | IEnumerator | ||
WhenAllTasksCoroutine | IEnumerator | ||
WhenAnyFibersCoroutine | IEnumerator | ||
WhenAnyTasksCoroutine | IEnumerator |
Method | Description | |
---|---|---|
ContinueWith ( object>.Action |
Creates a continuation that executes asynchronously when the target fiber completes.
|
|
ContinueWith ( object>.Action |
Creates a continuation that executes asynchronously when the target fiber completes.
|
|
ContinueWith ( object>.Action |
Creates a continuation that executes asynchronously when the target fiber completes.
|
|
ContinueWith ( object>.Action |
Creates a continuation that executes asynchronously when the target fiber completes.
|
|
ContinueWith ( object>.Action |
Creates a continuation that executes asynchronously when the target fiber completes.
|
|
ContinueWith ( Action |
Creates a continuation that executes asynchronously when the target fiber completes.
|
|
ContinueWith ( Action |
Creates a continuation that executes asynchronously when the target fiber completes.
|
|
ContinueWith ( Action |
Creates a continuation that executes asynchronously when the target fiber completes.
|
|
ContinueWith ( Action |
Creates a continuation that executes asynchronously when the target fiber completes.
|
|
ContinueWith ( Action |
Creates a continuation that executes asynchronously when the target fiber completes.
|
|
ContinueWith ( IEnumerator continuationCoroutine ) : |
Creates a continuation that executes asynchronously when the target fiber completes.
|
|
ContinueWith ( IEnumerator continuationCoroutine, |
Creates a continuation that executes asynchronously when the target fiber completes.
|
|
ContinueWith ( IEnumerator continuationCoroutine, |
Creates a continuation that executes asynchronously when the target fiber completes.
|
|
ContinueWith ( IEnumerator continuationCoroutine, FiberContinuationOptions continuationOptions ) : |
Creates a continuation that executes asynchronously when the target fiber completes.
|
|
ContinueWith ( IEnumerator continuationCoroutine, |
Creates a continuation that executes asynchronously when the target fiber completes.
|
|
Delay ( System.TimeSpan delay ) : |
Crates a Fiber that waits for a delay before completing.
|
|
Delay ( System.TimeSpan delay, |
Crates a Fiber that waits for a delay before completing.
|
|
Delay ( int millisecondsDelay ) : |
Crates a Fiber that waits for a delay before completing.
|
|
Delay ( int millisecondsDelay, |
Crates a Fiber that waits for a delay before completing.
|
|
Delay ( int millisecondsDelay, |
Crates a Fiber that waits for a delay before completing.
|
|
Fiber ( System.Action action ) : System |
Initializes a new instance of the SpicyPixel.Threading.Fiber class.
|
|
Fiber ( System.Action action, |
Initializes a new instance of the SpicyPixel.Threading.Fiber class.
|
|
Fiber ( Action |
Initializes a new instance of the SpicyPixel.Threading.Fiber class.
|
|
Fiber ( Action |
Initializes a new instance of the SpicyPixel.Threading.Fiber class.
|
|
Fiber ( Func |
Initializes a new instance of the SpicyPixel.Threading.Fiber class.
|
|
Fiber ( Func |
Initializes a new instance of the SpicyPixel.Threading.Fiber class.
|
|
Fiber ( FiberInstruction>.Func |
Initializes a new instance of the SpicyPixel.Threading.Fiber class.
|
|
Fiber ( FiberInstruction>.Func |
Initializes a new instance of the SpicyPixel.Threading.Fiber class.
|
|
Fiber ( IEnumerator coroutine ) : System |
Initializes a new instance of the SpicyPixel.Threading.Fiber class.
|
|
Fiber ( IEnumerator coroutine, |
Initializes a new instance of the SpicyPixel.Threading.Fiber class.
|
|
Start ( ) : void |
Start executing the fiber using the default scheduler on the thread.
|
|
Start ( |
Start executing the fiber using the specified scheduler. This method is safe to call from any thread even if different than the scheduler execution thread. |
|
ThrowIfCanceled ( ) : void |
Throws if canceled.
|
|
ThrowIfCanceledOrFaulted ( ) : void |
Throws if canceled or faulted.
|
|
ThrowIfFaulted ( ) : void |
Throws if faulted.
|
|
WhenAll ( ) : |
Returns a fiber that waits on all fibers to complete. `Fiber.ResultAsObject` will be `true` if all fibers complete successfully or `false` if cancelled or timeout. |
|
WhenAll ( |
Returns a fiber that waits on all fibers to complete. `Fiber.ResultAsObject` will be `true` if all fibers complete successfully or `false` if cancelled or timeout. |
|
WhenAll ( |
Returns a fiber that waits on all fibers to complete. `Fiber.ResultAsObject` will be `true` if all fibers complete successfully or `false` if cancelled or timeout. |
|
WhenAll ( |
Returns a fiber that waits on all fibers to complete. `Fiber.ResultAsObject` will be `true` if all fibers complete successfully or `false` if cancelled or timeout. |
|
WhenAll ( |
Returns a fiber that waits on all fibers to complete. `Fiber.ResultAsObject` will be `true` if all fibers complete successfully or `false` if cancelled or timeout. |
|
WhenAll ( |
Returns a fiber that waits on all fibers to complete. `Fiber.ResultAsObject` will be `true` if all fibers complete successfully or `false` if cancelled or timeout. |
|
WhenAll ( IEnumerable |
Returns a fiber that waits on all fibers to complete. `Fiber.ResultAsObject` will be `true` if all fibers complete successfully or `false` if cancelled or timeout. |
|
WhenAll ( IEnumerable |
Returns a fiber that waits on all tasks to complete. `Fiber.ResultAsObject` will be `true` if all tasks complete successfully or `false` if cancelled or timeout. |
|
WhenAll ( System.Threading.Task tasks, |
Returns a fiber that waits on all tasks to complete. `Fiber.ResultAsObject` will be `true` if all tasks complete successfully or `false` if cancelled or timeout. |
|
WhenAll ( System.Threading.Task tasks, System.TimeSpan timeout ) : |
Returns a fiber that waits on all tasks to complete. `Fiber.ResultAsObject` will be `true` if all tasks complete successfully or `false` if cancelled or timeout. |
|
WhenAll ( System.Threading.Task tasks, int millisecondsTimeout ) : |
Returns a fiber that waits on all tasks to complete. `Fiber.ResultAsObject` will be `true` if all tasks complete successfully or `false` if cancelled or timeout. |
|
WhenAll ( System.Threading.Task tasks, int millisecondsTimeout, |
Returns a fiber that waits on all tasks to complete. `Fiber.ResultAsObject` will be `true` if all tasks complete successfully or `false` if cancelled or timeout. |
|
WhenAll ( System.Threading.Task tasks, int millisecondsTimeout, |
Returns a fiber that waits on all tasks to complete. `Fiber.ResultAsObject` will be `true` if all tasks complete successfully or `false` if cancelled or timeout. |
|
WhenAny ( ) : |
Returns a fiber that completes when any fiber finishes. `Fiber.ResultAsObject` will be the `Fiber` that completed. |
|
WhenAny ( |
Returns a fiber that completes when any fiber finishes. `Fiber.ResultAsObject` will be the `Fiber` that completed. |
|
WhenAny ( |
Returns a fiber that completes when any fiber finishes. `Fiber.ResultAsObject` will be the `Fiber` that completed. |
|
WhenAny ( |
Returns a fiber that completes when any fiber finishes. `Fiber.ResultAsObject` will be the `Fiber` that completed. |
|
WhenAny ( |
Returns a fiber that completes when any fiber finishes. `Fiber.ResultAsObject` will be the `Fiber` that completed. |
|
WhenAny ( |
Returns a fiber that completes when any fiber finishes. `Fiber.ResultAsObject` will be the `Fiber` that completed. |
|
WhenAny ( IEnumerable |
Returns a fiber that completes when any fiber finishes. `Fiber.ResultAsObject` will be the `Fiber` that completed. |
|
WhenAny ( IEnumerable |
Returns a fiber that completes when any task finishes. `Fiber.ResultAsObject` will be the `Task` that completed. |
|
WhenAny ( System.Threading.Task tasks, |
Returns a fiber that completes when any task finishes. `Fiber.ResultAsObject` will be the `Task` that completed. |
|
WhenAny ( System.Threading.Task tasks, System.TimeSpan timeout ) : |
Returns a fiber that completes when any task finishes. `Fiber.ResultAsObject` will be the `Task` that completed. |
|
WhenAny ( System.Threading.Task tasks, int millisecondsTimeout ) : |
Returns a fiber that completes when any task finishes. `Fiber.ResultAsObject` will be the `Task` that completed. |
|
WhenAny ( System.Threading.Task tasks, int millisecondsTimeout, |
Returns a fiber that completes when any task finishes. `Fiber.ResultAsObject` will be the `Task` that completed. |
|
WhenAny ( System.Threading.Task tasks, int millisecondsTimeout, |
Returns a fiber that completes when any task finishes. `Fiber.ResultAsObject` will be the `Task` that completed. |
Method | Description | |
---|---|---|
CancelContinuation ( ) : void |
Called by a continuation to cancel the task and trigger other continuations.
|
|
CheckTimeout ( System.TimeSpan timeout ) : int | ||
DelayCoroutine ( int millisecondsDelay, |
||
Execute ( ) : |
Executes the fiber until it ends or yields.
|
|
FaultContinuation ( |
Faults the continuation.
|
|
FinishCompletion ( ) : void |
Run to finish transitioning to Completed by execution continuations.
|
|
Stop ( FiberStatus finalStatus ) : |
||
WhenAllFibersCoroutine ( IEnumerable |
||
WhenAllTasksCoroutine ( IEnumerable |
||
WhenAnyFibersCoroutine ( IEnumerable |
||
WhenAnyTasksCoroutine ( IEnumerable |
public ContinueWith ( object>.Action |
||
continuationAction | object>.Action | Continuation action. |
state | object | State. |
return |
public ContinueWith ( object>.Action |
||
continuationAction | object>.Action | Continuation action. |
state | object | State. |
cancellationToken | Cancellation token. | |
return |
public ContinueWith ( object>.Action |
||
continuationAction | object>.Action | Continuation action. |
state | object | State. |
cancellationToken | Cancellation token. | |
continuationOptions | FiberContinuationOptions | Continuation options. |
scheduler | Scheduler. | |
return |
public ContinueWith ( object>.Action |
||
continuationAction | object>.Action | Continuation action. |
state | object | State. |
continuationOptions | FiberContinuationOptions | Continuation options. |
return |
public ContinueWith ( object>.Action |
||
continuationAction | object>.Action | Continuation action. |
state | object | State. |
scheduler | Scheduler. | |
return |
public ContinueWith ( Action |
||
continuationAction | Action |
Continuation action. |
return |
public ContinueWith ( Action |
||
continuationAction | Action |
Continuation action. |
cancellationToken | Cancellation token. | |
return |
public ContinueWith ( Action |
||
continuationAction | Action |
Continuation action. |
cancellationToken | Cancellation token. | |
continuationOptions | FiberContinuationOptions | Continuation options. |
scheduler | Scheduler. | |
return |
public ContinueWith ( Action |
||
continuationAction | Action |
Continuation action. |
continuationOptions | FiberContinuationOptions | Continuation options. |
return |
public ContinueWith ( Action |
||
continuationAction | Action |
Continuation action. |
scheduler | Scheduler. | |
return |
public ContinueWith ( IEnumerator continuationCoroutine ) : |
||
continuationCoroutine | IEnumerator | Continuation coroutine. |
return |
public ContinueWith ( IEnumerator continuationCoroutine, |
||
continuationCoroutine | IEnumerator | Continuation coroutine. |
cancellationToken | Cancellation token. | |
return |
public ContinueWith ( IEnumerator continuationCoroutine, |
||
continuationCoroutine | IEnumerator | Continuation coroutine. |
cancellationToken | Cancellation token. | |
continuationOptions | FiberContinuationOptions | Continuation options. |
scheduler | Scheduler. | |
return |
public ContinueWith ( IEnumerator continuationCoroutine, FiberContinuationOptions continuationOptions ) : |
||
continuationCoroutine | IEnumerator | Continuation coroutine. |
continuationOptions | FiberContinuationOptions | Continuation options. |
return |
public ContinueWith ( IEnumerator continuationCoroutine, |
||
continuationCoroutine | IEnumerator | Continuation coroutine. |
scheduler | Scheduler. | |
return |
public static Delay ( System.TimeSpan delay ) : |
||
delay | System.TimeSpan | Time span to delay. |
return |
public static Delay ( System.TimeSpan delay, |
||
delay | System.TimeSpan | Time span to delay. |
cancellationToken | Cancellation token. | |
return |
public static Delay ( int millisecondsDelay ) : |
||
millisecondsDelay | int | Milliseconds to delay. |
return |
public static Delay ( int millisecondsDelay, |
||
millisecondsDelay | int | Milliseconds to delay. |
cancellationToken | Cancellation token. | |
return |
public static Delay ( int millisecondsDelay, |
||
millisecondsDelay | int | Milliseconds to delay. |
cancellationToken | Cancellation token. | |
scheduler | Scheduler. | |
return |
public Fiber ( System.Action action ) : System | ||
action | System.Action | /// A non-blocking action to execute on the fiber. /// |
return | System |
public Fiber ( System.Action action, |
||
action | System.Action | /// A non-blocking action to execute on the fiber. /// |
cancellationToken | Cancellation token. | |
return | System |
public Fiber ( Action | ||
action | Action | /// A non-blocking action to execute on the fiber. /// |
state | object | /// State to pass to the action. /// |
return | System |
public Fiber ( Action | ||
action | Action | /// A non-blocking action to execute on the fiber. /// |
state | object | /// State to pass to the action. /// |
cancellationToken | Cancellation token. | |
return | System |
public Fiber ( Func |
||
func | Func |
/// A non-blocking function that returns a |
return | System |
public Fiber ( Func |
||
func | Func |
/// A non-blocking function that returns a |
cancellationToken | Cancellation token. | |
return | System |
public Fiber ( FiberInstruction>.Func | ||
func | FiberInstruction>.Func |
/// A non-blocking function that returns a |
state | object | /// State to pass to the function. /// |
return | System |
public Fiber ( FiberInstruction>.Func | ||
func | FiberInstruction>.Func |
/// A non-blocking function that returns a |
state | object | /// State to pass to the function. /// |
cancellationToken | Cancellation token. | |
return | System |
public Fiber ( IEnumerator coroutine ) : System | ||
coroutine | IEnumerator | /// A couroutine to execute on the fiber. /// |
return | System |
public Fiber ( IEnumerator coroutine, |
||
coroutine | IEnumerator | /// A couroutine to execute on the fiber. /// |
cancellationToken | Cancellation token. | |
return | System |
public Start ( |
||
scheduler | /// The scheduler to start the fiber on. /// | |
return | void |
public static WhenAll ( |
||
fibers | Fibers to wait for completion. | |
cancellationToken | Cancellation token. | |
return |
public static WhenAll ( |
||
fibers | Fibers to wait for completion. | |
timeout | System.TimeSpan | Timeout. |
return |
public static WhenAll ( |
||
fibers | Fibers to wait for completion. | |
millisecondsTimeout | int | Milliseconds timeout. |
return |
public static WhenAll ( |
||
fibers | Fibers to wait for completion. | |
millisecondsTimeout | int | Milliseconds timeout. |
cancellationToken | Cancellation token. | |
return |
public static WhenAll ( |
||
fibers | Fibers to wait for completion. | |
millisecondsTimeout | int | Milliseconds timeout. |
cancellationToken | Cancellation token. | |
scheduler | Scheduler. | |
return |
public static WhenAll ( IEnumerable |
||
fibers | IEnumerable |
Fibers to wait for completion. |
millisecondsTimeout | int | Milliseconds timeout. |
cancellationToken | Cancellation token. | |
scheduler | Scheduler. | |
return |
public static WhenAll ( IEnumerable |
||
tasks | IEnumerable |
Tasks to wait for completion. |
millisecondsTimeout | int | Milliseconds timeout. |
cancellationToken | Cancellation token. | |
scheduler | Scheduler. | |
return |
public static WhenAll ( System.Threading.Task tasks, |
||
tasks | System.Threading.Task | Tasks to wait for completion. |
cancellationToken | Cancellation token. | |
return |
public static WhenAll ( System.Threading.Task tasks, System.TimeSpan timeout ) : |
||
tasks | System.Threading.Task | Tasks to wait for completion. |
timeout | System.TimeSpan | Timeout. |
return |
public static WhenAll ( System.Threading.Task tasks, int millisecondsTimeout ) : |
||
tasks | System.Threading.Task | Tasks to wait for completion. |
millisecondsTimeout | int | Milliseconds timeout. |
return |
public static WhenAll ( System.Threading.Task tasks, int millisecondsTimeout, |
||
tasks | System.Threading.Task | Tasks to wait for completion. |
millisecondsTimeout | int | Milliseconds timeout. |
cancellationToken | Cancellation token. | |
return |
public static WhenAll ( System.Threading.Task tasks, int millisecondsTimeout, |
||
tasks | System.Threading.Task | Tasks to wait for completion. |
millisecondsTimeout | int | Milliseconds timeout. |
cancellationToken | Cancellation token. | |
scheduler | Scheduler. | |
return |
public static WhenAny ( |
||
fibers | Fibers to wait for completion. | |
cancellationToken | Cancellation token. | |
return |
public static WhenAny ( |
||
fibers | Fibers to wait for completion. | |
timeout | System.TimeSpan | Timeout. |
return |
public static WhenAny ( |
||
fibers | Fibers to wait for completion. | |
millisecondsTimeout | int | Milliseconds timeout. |
return |
public static WhenAny ( |
||
fibers | Fibers to wait for completion. | |
millisecondsTimeout | int | Milliseconds timeout. |
cancellationToken | Cancellation token. | |
return |
public static WhenAny ( |
||
fibers | Fibers to wait for completion. | |
millisecondsTimeout | int | Milliseconds timeout. |
cancellationToken | Cancellation token. | |
scheduler | Scheduler. | |
return |
public static WhenAny ( IEnumerable |
||
fibers | IEnumerable |
Fibers to wait for completion. |
millisecondsTimeout | int | Milliseconds timeout. |
cancellationToken | Cancellation token. | |
scheduler | Scheduler. | |
return |
public static WhenAny ( IEnumerable |
||
tasks | IEnumerable |
Tasks to wait for completion. |
millisecondsTimeout | int | Milliseconds timeout. |
cancellationToken | Cancellation token. | |
scheduler | Scheduler. | |
return |
public static WhenAny ( System.Threading.Task tasks, |
||
tasks | System.Threading.Task | Tasks to wait for completion. |
cancellationToken | Cancellation token. | |
return |
public static WhenAny ( System.Threading.Task tasks, System.TimeSpan timeout ) : |
||
tasks | System.Threading.Task | Tasks to wait for completion. |
timeout | System.TimeSpan | Timeout. |
return |
public static WhenAny ( System.Threading.Task tasks, int millisecondsTimeout ) : |
||
tasks | System.Threading.Task | Tasks to wait for completion. |
millisecondsTimeout | int | Milliseconds timeout. |
return |
public static WhenAny ( System.Threading.Task tasks, int millisecondsTimeout, |
||
tasks | System.Threading.Task | Tasks to wait for completion. |
millisecondsTimeout | int | Milliseconds timeout. |
cancellationToken | Cancellation token. | |
return |
public static WhenAny ( System.Threading.Task tasks, int millisecondsTimeout, |
||
tasks | System.Threading.Task | Tasks to wait for completion. |
millisecondsTimeout | int | Milliseconds timeout. |
cancellationToken | Cancellation token. | |
scheduler | Scheduler. | |
return |