Rebornbuddy
Loading...
Searching...
No Matches
ff14bot.Behavior.CoroutineTaskAwaiter< T > Struct Template Reference

Represents an awaiter for a CoroutineTask<T>. This struct is used to await the completion of a coroutine task that returns a value. More...

Inheritance diagram for ff14bot.Behavior.CoroutineTaskAwaiter< T >:

Public Member Functions

GetResult ()
 Ends the await on the coroutine task and retrieves the result.
void OnCompleted (Action continuation)
 Schedules the continuation action that is invoked when the coroutine task completes.

Properties

bool IsCompleted [get]
 Gets a value indicating whether the coroutine task has completed.

Detailed Description

Represents an awaiter for a CoroutineTask<T>. This struct is used to await the completion of a coroutine task that returns a value.

Template Parameters
TThe type of the result returned by the coroutine task.

Member Function Documentation

◆ GetResult()

Ends the await on the coroutine task and retrieves the result.

Returns
The result of the coroutine task.

◆ OnCompleted()

void ff14bot.Behavior.CoroutineTaskAwaiter< T >.OnCompleted ( Action continuation)

Schedules the continuation action that is invoked when the coroutine task completes.

Parameters
continuationThe action to invoke when the coroutine task completes.

Property Documentation

◆ IsCompleted

bool ff14bot.Behavior.CoroutineTaskAwaiter< T >.IsCompleted
get

Gets a value indicating whether the coroutine task has completed.