tModLoader v2024.11
A mod to make and play Terraria mods
AsyncProvider< T > Class Template Reference

Public Member Functions

 AsyncProvider (IAsyncEnumerable< T > provider)
 
void Cancel ()
 
IEnumerable< T > GetData ()
 

Properties

Exception Exception [get]
 
bool IsCancellationRequested [get]
 
AsyncProviderState State [get]
 

Constructor & Destructor Documentation

◆ AsyncProvider()

AsyncProvider< T >.AsyncProvider ( IAsyncEnumerable< T >  provider)

Remember to provide your enumerator with [EnumeratorCancellation] CancellationToken token = default as argument to allow cancellation notification.