# FromAsyncOperation(AsyncOperation, CancellationToken)

> Creates an Awaitable from an existing AsyncOperation object.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static Awaitable FromAsyncOperation(AsyncOperation op, CancellationToken cancellationToken = default)
```

### Parameters

**** (\[AsyncOperation]\(/engine/6000.5/script-reference/unityengine/asyncoperation)): Async operation object.**** (\[CancellationToken]\(https\://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken)): Optional cancellation token.

### Returns

| Type                                                                  | Description |
| --------------------------------------------------------------------- | ----------- |
| [Awaitable](/engine/6000.5/script-reference/unityengine/awaitable.md) |             |
