Metodo System::Threading::Tasks::Yield

System::Threading::Tasks::Yield method

Crea un task attendibile che restituisce in modo asincrono il controllo al contesto corrente quando viene atteso.

Runtime::CompilerServices::YieldAwaitable System::Threading::Tasks::Yield()

ReturnValue

Un YieldAwaitable che può essere atteso per cedere il controllo.

Osservazioni

Questo metodo è utile per forzare un metodo asincrono a cedere il controllo, consentendo l’elaborazione di altri lavori in sospeso prima di continuare.

Vedi anche