mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 00:09:55 +09:00
Add xmldoc
This commit is contained in:
@ -16,6 +16,11 @@ namespace osu.Game.Utils
|
|||||||
private readonly object currentTaskLock = new object();
|
private readonly object currentTaskLock = new object();
|
||||||
private Task? currentTask;
|
private Task? currentTask;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Adds a new task to the end of this <see cref="TaskChain"/>.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="taskFunc">The task creation function.</param>
|
||||||
|
/// <returns>The awaitable <see cref="Task"/>.</returns>
|
||||||
public Task Add(Func<Task> taskFunc)
|
public Task Add(Func<Task> taskFunc)
|
||||||
{
|
{
|
||||||
lock (currentTaskLock)
|
lock (currentTaskLock)
|
||||||
|
Reference in New Issue
Block a user