Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.

Commit 9797c9d

Browse files
Joy-lessAtlinx
authored andcommitted
Add default parameter for GDTask.Never
1 parent 6e25146 commit 9797c9d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

addons/GDTask/GDTask.Factory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,15 @@ public static GDTask<T> Defer<T>(Func<GDTask<T>> factory)
154154
/// <summary>
155155
/// Never complete.
156156
/// </summary>
157-
public static GDTask Never(CancellationToken cancellationToken)
157+
public static GDTask Never(CancellationToken cancellationToken = default)
158158
{
159159
return new GDTask<AsyncUnit>(new NeverPromise<AsyncUnit>(cancellationToken), 0);
160160
}
161161

162162
/// <summary>
163163
/// Never complete.
164164
/// </summary>
165-
public static GDTask<T> Never<T>(CancellationToken cancellationToken)
165+
public static GDTask<T> Never<T>(CancellationToken cancellationToken = default)
166166
{
167167
return new GDTask<T>(new NeverPromise<T>(cancellationToken), 0);
168168
}

0 commit comments

Comments
 (0)