Skip to content

Commit

Permalink
chore: fixing cancellationToken should have default null value
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Nov 14, 2023
1 parent ebe67f5 commit 59d2384
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Prism.Core/Commands/AsyncDelegateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public bool IsExecuting
///<summary>
/// Executes the command.
///</summary>
public async Task Execute(CancellationToken? cancellationToken)
public async Task Execute(CancellationToken? cancellationToken = null)
{
var token = cancellationToken ?? _getCancellationToken();
try
Expand Down
2 changes: 1 addition & 1 deletion src/Prism.Core/Commands/AsyncDelegateCommand{T}.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public bool IsExecuting
///<summary>
/// Executes the command.
///</summary>
public async Task Execute(T parameter, CancellationToken? cancellationToken)
public async Task Execute(T parameter, CancellationToken? cancellationToken = null)
{
var token = cancellationToken ?? _getCancellationToken();

Expand Down

0 comments on commit 59d2384

Please sign in to comment.