Class AltAsync
Inheritance
System.Object
AltAsync
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: AltV.Net.Client.Async.dll
Syntax
public static class AltAsync
Methods
|
Improve this Doc
View Source
Do(Action)
Declaration
public static Task Do(Action action)
Parameters
Type |
Name |
Description |
Action |
action |
|
Returns
|
Improve this Doc
View Source
Do(Action<Object>, Object)
Declaration
public static Task Do(Action<object> action, object value)
Parameters
Type |
Name |
Description |
Action<System.Object> |
action |
|
System.Object |
value |
|
Returns
|
Improve this Doc
View Source
Do(Func<Task>)
Declaration
public static Task Do(Func<Task> task)
Parameters
Type |
Name |
Description |
Func<Task> |
task |
|
Returns
|
Improve this Doc
View Source
Do(Task)
Declaration
public static Task Do(Task task)
Parameters
Type |
Name |
Description |
Task |
task |
|
Returns
|
Improve this Doc
View Source
Do<TResult>(Func<TResult>)
Declaration
public static Task<TResult> Do<TResult>(Func<TResult> action)
Parameters
Type |
Name |
Description |
Func<TResult> |
action |
|
Returns
Type |
Description |
Task<TResult> |
|
Type Parameters
|
Improve this Doc
View Source
Do<TResult>(Func<Object, TResult>, Object)
Declaration
public static Task<TResult> Do<TResult>(Func<object, TResult> action, object value)
Parameters
Type |
Name |
Description |
Func<System.Object, TResult> |
action |
|
System.Object |
value |
|
Returns
Type |
Description |
Task<TResult> |
|
Type Parameters
|
Improve this Doc
View Source
ReturnToMainThread()
Declaration
public static async Task<AltAsync.MainThreadContext> ReturnToMainThread()
Returns
|
Improve this Doc
View Source
RunOnMainThread(Action)
Declaration
public static void RunOnMainThread(Action action)
Parameters
Type |
Name |
Description |
Action |
action |
|
|
Improve this Doc
View Source
RunOnMainThread(Action<Object>, Object)
Declaration
public static void RunOnMainThread(Action<object> action, object value)
Parameters
Type |
Name |
Description |
Action<System.Object> |
action |
|
System.Object |
value |
|
|
Improve this Doc
View Source
RunOnMainThreadBlocking(Action, SemaphoreSlim)
Declaration
public static void RunOnMainThreadBlocking(Action action, SemaphoreSlim semaphoreSlim)
Parameters
Type |
Name |
Description |
Action |
action |
|
SemaphoreSlim |
semaphoreSlim |
|
|
Improve this Doc
View Source
RunOnMainThreadBlockingThrows(Action, SemaphoreSlim)
Declaration
public static void RunOnMainThreadBlockingThrows(Action action, SemaphoreSlim semaphoreSlim)
Parameters
Type |
Name |
Description |
Action |
action |
|
SemaphoreSlim |
semaphoreSlim |
|
|
Improve this Doc
View Source
WaitFor(Func<Boolean>, UInt32, UInt32)
Declaration
public static async Task WaitFor(Func<bool> fn, uint timeout = 2000U, uint interval = 0U)
Parameters
Type |
Name |
Description |
Func<System.Boolean> |
fn |
|
System.UInt32 |
timeout |
|
System.UInt32 |
interval |
|
Returns