You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For customized SynchronizationContext implementation, knowing whether a pending request
has been completed could allow it to remove completed requests. Because JTF requests are potentially sent to multiple
queues, including the JTF internal queue, many of those requests can be processed especially inside low priority or delayed queues.
For low priority queue, completed tasks showing up for high memory usages. This new contract provides a way to make improvements.
This is only for advanced scenarios, common JTF consumers would not access the request or have chance to use it incorrectly.
// Copyright (c) Microsoft Corporation. All rights reserved.
2
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+
namespaceMicrosoft.VisualStudio.Threading
5
+
{
6
+
/// <summary>
7
+
/// An optional interface implemented by pending request state posted to the underline synchronization context. It allows synchronization context to remove completed requests.
8
+
/// </summary>
9
+
publicinterfaceIPendingExecutionRequestState
10
+
{
11
+
/// <summary>
12
+
/// Gets a value indicating whether the current request has been completed, and can be skipped.
0 commit comments