Browse Source

use C#7.0 for default arguments

release/3.x.x
Бессонов Дмитрий 5 years ago
parent
commit
15ff03c136
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Source/MQTTnet/Internal/BlockingQueue.cs

+ 2
- 2
Source/MQTTnet/Internal/BlockingQueue.cs View File

@@ -32,7 +32,7 @@ namespace MQTTnet.Internal
}
}

public TItem Dequeue(CancellationToken cancellationToken = default)
public TItem Dequeue(CancellationToken cancellationToken = default(CancellationToken))
{
while (true)
{
@@ -56,7 +56,7 @@ namespace MQTTnet.Internal
}
}
public TItem PeekAndWait(CancellationToken cancellationToken = default)
public TItem PeekAndWait(CancellationToken cancellationToken = default(CancellationToken))
{
while (true)
{


Loading…
Cancel
Save