Skip to content

Commit cd3c776

Browse files
author
Jos Hickson
authored
Merge pull request #1 from wintoncode/master
Merge latest from wintoncode
2 parents 287f033 + a0ed994 commit cd3c776

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Winton.Extensions.Threading.Actor
22

3+
[![Build Status](https://travis-ci.org/wintoncode/Winton.Extensions.Threading.Actor.svg?branch=master)](https://travis-ci.org/wintoncode/Winton.Extensions.Threading.Actor)
4+
[![Build status](https://ci.appveyor.com/api/projects/status/p8q7dr2fnx6cxjka/branch/master?svg=true)](https://ci.appveyor.com/project/jhickson/winton-extensions-threading-actor-oadln/branch/master)
5+
6+
37
A lightweight implementation of the actor pattern designed to integrate with C#'s `async`/`await` keywords.
48
It is a richer version of the implementation outlined on [Winton's Tech Blog](https://tech.winton.com/blog/2017/03/a-tpl-actor-pattern).
59

Winton.Extensions.Threading.Actor.Tests.Unit/Internal/ActorWorkSchedulerTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ public void ShouldBeAbleToConfigureScheduleToRescheduleInCaseOfUnexpectedErrorBu
269269
case WorkType.Async:
270270
task = _scheduler.Schedule(async () =>
271271
{
272-
await Task.Yield();
273272
times.Add(_utcTimeSource.Current);
274-
273+
await Task.Yield();
274+
275275
if (times.Count == 3)
276276
{
277277
throw new InvalidOperationException("Pah!");
@@ -326,9 +326,9 @@ public void WhenAnUnhandledErrorOccursInTheWorkTheScheduleShouldStopAndEmitTheEr
326326
{
327327
task = _scheduler.Schedule(async () =>
328328
{
329-
await Task.Yield();
330329
times.Add(_utcTimeSource.Current);
331-
330+
await Task.Yield();
331+
332332
if (times.Count == 3)
333333
{
334334
throw new Exception("Pah!");

Winton.Extensions.Threading.Actor.Tests.Unit/Winton.Extensions.Threading.Actor.Tests.Unit.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<Import Condition="Exists('../travis.props')" Project="../travis.props" />
4-
53
<PropertyGroup>
64
<TargetFrameworks>netcoreapp1.0;net451</TargetFrameworks>
75
<SignAssembly>True</SignAssembly>

0 commit comments

Comments
 (0)