Skip to content

Commit 9d052ac

Browse files
author
Meyn
committed
Implement PriorityItem
1 parent 1f543cf commit 9d052ac

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Requests/Channel/IPriorityChannel.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
namespace Requests.Channel
44
{
5+
/// <summary>
6+
/// Record that transport the item and the prority of the item
7+
/// </summary>
8+
/// <param name="Priority">Priority of the item</param>
9+
/// <param name="Item">Item that the channel uses</param>
10+
public record PriorityItem<TElement>(float Priority, TElement Item);
11+
512
/// <summary>
613
/// Represents a priority channel that allows reading and writing of items with associated priorities.
714
/// </summary>

0 commit comments

Comments
 (0)