Class UnityThreadUtilsWrapper#
Inheritance#
System.Object
UnityThreadUtilsWrapper
Inherited Members#
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Syntax#
public class UnityThreadUtilsWrapper : IUnityThreadUtils, IServiceComponent
Properties#
IsRunningOnUnityThread#
Declaration#
public bool IsRunningOnUnityThread { get; }
Property Value#
Type | Description |
---|
System.Boolean | |
Implements#
Methods#
PostAsync(Action)#
Declaration#
public Task PostAsync(Action action)
Parameters#
Type | Name | Description |
---|
System.Action | action | |
Returns#
Type | Description |
---|
System.Threading.Tasks.Task | |
Implements#
PostAsync(Action<Object>, Object)#
Declaration#
public Task PostAsync(Action<object> action, object state)
Parameters#
Type | Name | Description |
---|
System.Action<System.Object> | action | |
System.Object | state | |
Returns#
Type | Description |
---|
System.Threading.Tasks.Task | |
Implements#
PostAsync<T>(Func<T>)#
Declaration#
public Task<T> PostAsync<T>(Func<T> action)
Parameters#
Type | Name | Description |
---|
System.Func<T> | action | |
Returns#
Type | Description |
---|
System.Threading.Tasks.Task<T> | |
Type Parameters#
Implements#
PostAsync<T>(Func<Object, T>, Object)#
Declaration#
public Task<T> PostAsync<T>(Func<object, T> action, object state)
Parameters#
Type | Name | Description |
---|
System.Func<System.Object, T> | action | |
System.Object | state | |
Returns#
Type | Description |
---|
System.Threading.Tasks.Task<T> | |
Type Parameters#
Implements#
Unity.Services.Core.Threading.Internal.IUnityThreadUtils.PostAsync<T>(System.Func<System.Object, T>, System.Object)
Send(Action)#
Declaration#
public void Send(Action action)
Parameters#
Type | Name | Description |
---|
System.Action | action | |
Implements#
Send(Action<Object>, Object)#
Declaration#
public void Send(Action<object> action, object state)
Parameters#
Type | Name | Description |
---|
System.Action<System.Object> | action | |
System.Object | state | |
Implements#
Send<T>(Func<T>)#
Declaration#
public T Send<T>(Func<T> action)
Parameters#
Type | Name | Description |
---|
System.Func<T> | action | |
Returns#
Type Parameters#
Implements#
Unity.Services.Core.Threading.Internal.IUnityThreadUtils.Send<T>(System.Func<T>)
Send<T>(Func<Object, T>, Object)#
Declaration#
public T Send<T>(Func<object, T> action, object state)
Parameters#
Type | Name | Description |
---|
System.Func<System.Object, T> | action | |
System.Object | state | |
Returns#
Type Parameters#
Implements#