Skip to content

Commit 8c145ed

Browse files
author
Jos Hickson
committed
Clean up code issues.
1 parent a7a1cd7 commit 8c145ed

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Winton.Extensions.Threading.Actor/Internal/ActorWorkScheduler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private async Task Schedule(Func<Task> enqueuer, TimeSpan interval, ActorSchedul
7777

7878
await enqueuer().ConfigureAwait(false);
7979

80-
while (true)
80+
while (!cancellationToken.IsCancellationRequested)
8181
{
8282
await GetDelay(interval, cancellationToken).ConfigureAwait(false);
8383
await enqueuer().ConfigureAwait(false);

Winton.Extensions.Threading.Actor/Internal/StateMachine/ActorContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public ActorContext(IActorTaskFactory actorTaskFactory)
3131

3232
public ActorStartWork StartWork
3333
{
34-
get { return _startWork; }
34+
get => _startWork;
3535
set
3636
{
3737
if (value == null)
@@ -57,7 +57,7 @@ public ActorStartWork StartWork
5757

5858
public ActorStopWork StopWork
5959
{
60-
get { return _stopWork; }
60+
get => _stopWork;
6161
set
6262
{
6363
if (value == null)

0 commit comments

Comments
 (0)