Skip to content

Commit fd61303

Browse files
committed
Fix missing cancellation token propagation in default implementation
1 parent aded724 commit fd61303

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Flow.Launcher.Plugin/Interfaces/IDialogJump.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ public interface IDialogJump : IAsyncDialogJump
2424
/// <returns></returns>
2525
List<DialogJumpResult> QueryDialogJump(Query query);
2626

27-
Task<List<DialogJumpResult>> IAsyncDialogJump.QueryDialogJumpAsync(Query query, CancellationToken token) => Task.Run(() => QueryDialogJump(query));
27+
Task<List<DialogJumpResult>> IAsyncDialogJump.QueryDialogJumpAsync(Query query, CancellationToken token) => Task.Run(() => QueryDialogJump(query), token);
2828
}
2929
}

Flow.Launcher.Plugin/Interfaces/IPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ public interface IPlugin : IAsyncPlugin
3232

3333
Task IAsyncPlugin.InitAsync(PluginInitContext context) => Task.Run(() => Init(context));
3434

35-
Task<List<Result>> IAsyncPlugin.QueryAsync(Query query, CancellationToken token) => Task.Run(() => Query(query));
35+
Task<List<Result>> IAsyncPlugin.QueryAsync(Query query, CancellationToken token) => Task.Run(() => Query(query), token);
3636
}
3737
}

0 commit comments

Comments
 (0)