SpicyPixel.Threading.SystemCoroutine Class Reference

This static class exposes convenience coroutines that can be passed to a fiber or task. More...

+ Collaboration diagram for SpicyPixel.Threading.SystemCoroutine:

Static Public Member Functions

static IEnumerator RepeatForIterations (Action< int > action, int iterations)
 Convenience coroutine to repeat an action for the specified number of iterations at the scheduler frequency. More...
 

Detailed Description

This static class exposes convenience coroutines that can be passed to a fiber or task.

Definition at line 38 of file SystemCoroutine.cs.

Member Function Documentation

static IEnumerator SpicyPixel.Threading.SystemCoroutine.RepeatForIterations ( Action< int >  action,
int  iterations 
)
static

Convenience coroutine to repeat an action for the specified number of iterations at the scheduler frequency.

Returns
A FiberInstruction.
Parameters
actionThe action to execute.
iterationsThe iterations to execute for.

Definition at line 99 of file SystemCoroutine.cs.


The documentation for this class was generated from the following file: