SpicyPixel.Threading.UnityCoroutine Class Reference

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

+ Collaboration diagram for SpicyPixel.Threading.UnityCoroutine:

Static Public Member Functions

static IEnumerator RepeatForSeconds (Action< float > action, float seconds)
 Convenience coroutine to repeat an action for the specified duration at the scheduler frequency. More...
 

Detailed Description

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

Definition at line 38 of file UnityCoroutine.cs.

Member Function Documentation

static IEnumerator SpicyPixel.Threading.UnityCoroutine.RepeatForSeconds ( Action< float >  action,
float  seconds 
)
static

Convenience coroutine to repeat an action for the specified duration at the scheduler frequency.

Returns
A FiberInstruction
Parameters
actionThe action to execute.
secondsThe seconds to execute for at the scheduler frequency.

Definition at line 52 of file UnityCoroutine.cs.


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