C# 클래스 SpicyPixel.Threading.SystemCoroutine

This static class exposes convenience coroutines that can be passed to a fiber or task.
파일 보기 프로젝트 열기: spicypixel/concurrency-kit-cs

공개 메소드들

메소드 설명
RepeatForIterations ( Action action, int iterations ) : IEnumerator

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

비공개 메소드들

메소드 설명
RepeatForSeconds ( Action action, float seconds ) : IEnumerator

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

This is internal until there is a scheduler agnostic way to handle delta time.

YieldForSeconds ( float seconds ) : FiberInstruction

Convenience coroutine to send a YieldForSeconds instruction to the scheduler and wait on it to complete.

메소드 상세

RepeatForIterations() 공개 정적인 메소드

Convenience coroutine to repeat an action for the specified number of iterations at the scheduler frequency.
public static RepeatForIterations ( Action action, int iterations ) : IEnumerator
action Action /// The action to execute. ///
iterations int /// The iterations to execute for. ///
리턴 IEnumerator