JUtils
A unity utilities library
JUtils.Coroutines Class Reference

Make coroutines run on the JUtilsObject More...

Static Public Member Functions

static Coroutine RunNextFrame ([NotNull] Action action)
 Run an action in the next frame More...
 
static Coroutine RunDelay (float delay, [NotNull] Action action)
 Run an action after a certain amount of seconds; – You should always use StartCoroutine instead of the Coroutines, but this can be more useful. More...
 
static Coroutine RunDelay (TimeSpan delay, [NotNull] Action action)
 Run an action after a certain amount of seconds – You should always use StartCoroutine instead of the Coroutines, but this can be more useful. More...
 
static Coroutine Run (IEnumerator routine)
 Run a routine on the JUtils Object – You should always use StartCoroutine instead of the Coroutines, but this can be more useful. More...
 
static Coroutine Then (this Coroutine coroutine, [NotNull] Action action)
 Allows method chaining for coroutines More...
 

Detailed Description

Make coroutines run on the JUtilsObject

Coroutines.RunDelay(2f, () => Debug.Log("Delay triggered"))

Member Function Documentation

◆ Run()

static Coroutine JUtils.Coroutines.Run ( IEnumerator  routine)
inlinestatic

Run a routine on the JUtils Object – You should always use StartCoroutine instead of the Coroutines, but this can be more useful.

◆ RunDelay() [1/2]

static Coroutine JUtils.Coroutines.RunDelay ( float  delay,
[NotNull] Action  action 
)
inlinestatic

Run an action after a certain amount of seconds; – You should always use StartCoroutine instead of the Coroutines, but this can be more useful.

References JUtils.Routines.DelayRoutine().

Here is the call graph for this function:

◆ RunDelay() [2/2]

static Coroutine JUtils.Coroutines.RunDelay ( TimeSpan  delay,
[NotNull] Action  action 
)
inlinestatic

Run an action after a certain amount of seconds – You should always use StartCoroutine instead of the Coroutines, but this can be more useful.

References JUtils.Routines.DelayRoutine().

Here is the call graph for this function:

◆ RunNextFrame()

static Coroutine JUtils.Coroutines.RunNextFrame ( [NotNull] Action  action)
inlinestatic

Run an action in the next frame

References JUtils.Routines.NextFrameRoutine().

Here is the call graph for this function:

◆ Then()

static Coroutine JUtils.Coroutines.Then ( this Coroutine  coroutine,
[NotNull] Action  action 
)
inlinestatic

Allows method chaining for coroutines

References JUtils.Routines.ThenRoutine().

Here is the call graph for this function:

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