C# Class SpicyPixel.Threading.UnityCoroutine

This static class exposes convenience coroutines specific to Unity that can be passed to a fiber or task.
Show file Open project: spicypixel/concurrency-kit-cs

Public Methods

Method Description
RepeatForSeconds ( Action action, float seconds ) : IEnumerator

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

Method Details

RepeatForSeconds() public static method

Convenience coroutine to repeat an action for the specified duration at the scheduler frequency.
public static RepeatForSeconds ( Action action, float seconds ) : IEnumerator
action Action /// The action to execute. ///
seconds float /// The seconds to execute for at the scheduler frequency. ///
return IEnumerator