Class AsyncRequest<T>
An async operation that contains a type of request. Request
Inherited Members
Namespace: Unity.PSN.PS5.Aysnc
Syntax
public class AsyncRequest<T> : AsyncOp where T : Request
Type Parameters
| Name | Description |
|---|---|
| T | A type of Request. Request |
Constructors
AsyncRequest()
Contruct an empty async operation
Declaration
public AsyncRequest()
AsyncRequest(T)
Construct an async operation containing a request
Declaration
public AsyncRequest(T request)
Parameters
| Type | Name | Description |
|---|---|---|
| T | request | The request object to run |
Properties
Request
The request data
Declaration
public T Request { get; }
Property Value
| Type | Description |
|---|---|
| T |
Methods
ContinueWith(Action<AsyncRequest<T>>)
Join an Action, which contains an async Request, onto this operation, which will execute after this operation has finished.
Declaration
public AsyncAction<AsyncRequest<T>> ContinueWith(Action<AsyncRequest<T>> continueWith)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<AsyncRequest<T>> | continueWith | Action containing the Async request |
Returns
| Type | Description |
|---|---|
| AsyncAction<AsyncRequest<T>> | An async action |