Quantum 3
3.1.0
The Photon Realtime async extension configuration is used in all async calls and will use the Global if not explicitly set. More...
Static Public Member Functions | |
| static AsyncConfig | CreateUnityAsyncConfig () |
| Creates a config that works in Unity: only runs tasks on the main thread plus a CancellationSource. More... | |
| static TaskFactory | CreateUnityTaskFactory () |
| Create a task factory that work in Unity: only runs tasks on the main thread. More... | |
| static void | InitForUnity () |
| Set the Global config to work with Unity. More... | |
Public Attributes | |
| bool | IsCancellationRequested => CancellationToken.IsCancellationRequested |
| Is the cancellation requested. More... | |
Static Public Attributes | |
| static AsyncConfig | Global = new AsyncConfig() |
| The global async config used by all async calls if no explicit config is passed. More... | |
Properties | |
| CancellationToken | CancellationToken [get, set] |
| A cancellation token that is used by default in Photon Realtime async tasks and can be used to globally cancel everything. More... | |
| bool | CreateServiceTask = true [get, set] |
| Runs client.Service() during the operation. More... | |
| float | OperationTimeoutSec = 15.0f [get, set] |
| Timeout for operations will cause a OperationCanceled exception. More... | |
| int | ServiceIntervalMs = 10 [get, set] |
| Update interval of the ServiceTask More... | |
| TaskFactory | TaskFactory = Task.Factory [get, set] |
| Customize the task factory. Default is Task.Factory. More... | |
| TaskScheduler? | TaskScheduler [get] |
| Get the task scheduler from the TaskFactory, otherwise TaskScheduler.Default. More... | |
The Photon Realtime async extension configuration is used in all async calls and will use the Global if not explicitly set.
|
inlinestatic |
Set the Global config to work with Unity.
|
inlinestatic |
Creates a config that works in Unity: only runs tasks on the main thread plus a CancellationSource.
|
inlinestatic |
Create a task factory that work in Unity: only runs tasks on the main thread.
|
static |
The global async config used by all async calls if no explicit config is passed.
| bool Photon.Realtime.AsyncConfig.IsCancellationRequested => CancellationToken.IsCancellationRequested |
Is the cancellation requested.
|
getset |
Runs client.Service() during the operation.
|
getset |
Update interval of the ServiceTask
|
getset |
Timeout for operations will cause a OperationCanceled exception.
|
getset |
Customize the task factory. Default is Task.Factory.
|
get |
Get the task scheduler from the TaskFactory, otherwise TaskScheduler.Default.
|
getset |
A cancellation token that is used by default in Photon Realtime async tasks and can be used to globally cancel everything.