Table of Contents

Class TaskList

Namespace
Lime
Assembly
Lime.dll
public class TaskList : List<Task>, IList<Task>, ICollection<Task>, IReadOnlyList<Task>, IReadOnlyCollection<Task>, IEnumerable<Task>, IList, ICollection, IEnumerable
Inheritance
TaskList
Implements
Inherited Members
Extension Methods

Constructors

TaskList()

public TaskList()

TaskList(Node)

public TaskList(Node node)

Parameters

node Node

Properties

Current

Currently processing TaskList.

public static TaskList Current { get; }

Property Value

TaskList

Node

Gets the widget this instance belongs to.

public Node Node { get; }

Property Value

Node

Methods

Add(IEnumerator<object>, object)

Adds task to the end of this list.

public Task Add(IEnumerator<object> e, object tag = null)

Parameters

e IEnumerator<object>
tag object

Returns

Task

Add(Func<IEnumerator<object>>, object)

Adds task to the end of this list.

public Task Add(Func<IEnumerator<object>> e, object tag = null)

Parameters

e Func<IEnumerator<object>>
tag object

Returns

Task

AddConcurrent(params IEnumerator<object>[])

public List<Task> AddConcurrent(params IEnumerator<object>[] args)

Parameters

args IEnumerator<object>[]

Returns

List<Task>

AddLoop(Action, object)

public Task AddLoop(Action action, object tag = null)

Parameters

action Action
tag object

Returns

Task

AddSequence(params IEnumerator<object>[])

public Task AddSequence(params IEnumerator<object>[] args)

Parameters

args IEnumerator<object>[]

Returns

Task

AnyTagged(object)

public bool AnyTagged(object tag)

Parameters

tag object

Returns

bool

Stop()

Stops all tasks.

public void Stop()

Stop(Predicate<Task>)

Stops all tasks that match the conditions defined by the specified predicate.

public void Stop(Predicate<Task> match)

Parameters

match Predicate<Task>

StopByTag(object)

Stops all tasks with specified tag (null is also a tag).

public void StopByTag(object tag)

Parameters

tag object

Update(float)

Advances tasks by provided delta and removes completed ones.

public void Update(float delta)

Parameters

delta float

Time delta since last Update.