Table of Contents

Class

Namespace
CoreFramework

Provides extension methods for Unity's AsyncOperation to integrate with asynchronous programming patterns.

public static class AsyncOperationExtensions
Inheritance
object

Methods

AsTask(AsyncOperation)

Converts a Unity AsyncOperation to a System.Threading.Tasks.Task that can be awaited.

public static Task AsTask(this AsyncOperation asyncOperation)

Parameters

asyncOperation AsyncOperation

The AsyncOperation to convert.

Returns

Task

A System.Threading.Tasks.Task that represents the completion of the AsyncOperation.