Skip to Main Content

BTD_Mod_Helper​.Extensions​.TaskExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

TaskExt Class

Extensions for Il2Cpp Task

public static class TaskExt

Inheritance System.Object  TaskExt

Methods

TaskExt.ContinueWithIl2Cpp(this Task, Action<Task>) Method

Calls ContinueWith properly typed for IL2CPP

public static void ContinueWithIl2Cpp<T>(this Task<T> task, System.Action<Task<T>> action);

Type parameters

T

Parameters

task Il2CppSystem.Threading.Tasks.Task

action System.Action<Il2CppSystem.Threading.Tasks.Task>

TaskExt.Then(this Task, Action, Action) Method

Calls ContinueWith properly typed for IL2CPP with the task's Result

public static void Then<T>(this Task<T> task, System.Action<T> action, System.Action<AggregateException> error=null);

Type parameters

T

Parameters

task Il2CppSystem.Threading.Tasks.Task

action System.Action<T>

error System.Action<Il2CppSystem.AggregateException>