Skip to content

Commit 51ecc70

Browse files
authored
Update NetMQPoller.cs
1 parent 1231c7f commit 51ecc70

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/NetMQ/NetMQPoller.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,9 @@ public void RunAsync(string threadName)
433433
/// Runs the poller in a specified thread - background/foreground, returning once the poller has started.
434434
/// </summary>
435435
/// <param name="threadName">The thread name to use.</param>
436-
/// <param name="foregroundPoller">Allow the poller thread to be a foreground thread/background.</param>
437-
public void RunAsync(string threadName, bool foregroundPoller)
436+
/// <param name="longRunningPoller">Allow the poller thread to be a long running
437+
/// poller (either foreground thread /background)</param>
438+
public void RunAsync(string threadName, bool longRunningPoller)
438439
{
439440
CheckDisposed();
440441
if (IsRunning)
@@ -443,7 +444,7 @@ public void RunAsync(string threadName, bool foregroundPoller)
443444
var thread = new Thread(Run)
444445
{
445446
Name = threadName,
446-
IsBackground = !foregroundPoller
447+
IsBackground = !longRunningPoller
447448
};
448449
thread.Start();
449450

0 commit comments

Comments
 (0)