Table of Contents

Class AsyncOperationExtensions

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Extension methods that make Unity AsyncOperation awaitable so it can be used directly with C# async/await (e.g. await request.SendWebRequest()).

public static class AsyncOperationExtensions
Inheritance
AsyncOperationExtensions
Inherited Members

Methods

GetAwaiter(AsyncOperation)

Returns a task awaiter for an UnityEngine.AsyncOperation, completing when the operation finishes.

public static TaskAwaiter<AsyncOperation> GetAwaiter(this AsyncOperation asyncOp)

Parameters

asyncOp AsyncOperation

Returns

TaskAwaiter<AsyncOperation>