Skip to content

Commit e2a5780

Browse files
author
Oren (electricessence)
committed
Tweaks.
1 parent 198eca3 commit e2a5780

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

Extensions.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,18 +218,18 @@ Action onCompleted
218218

219219
public void OnNext(T value)
220220
{
221-
if (_onNext != null) _onNext(value);
222-
}
221+
_onNext?.Invoke(value);
222+
}
223223

224224
public void OnError(Exception error)
225225
{
226-
if (_onError != null) _onError(error);
227-
}
226+
_onError?.Invoke(error);
227+
}
228228

229229
public void OnCompleted()
230230
{
231-
if (_onCompleted != null) _onCompleted();
232-
}
231+
_onCompleted?.Invoke();
232+
}
233233

234234

235235
public void Dispose()

Open.Threading.Dataflow.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ Part of the "Open" set of libraries.</Description>
1717
<PackageTags>dotnet, dotnet-core, dotnetcore, cs, dataflow, tpl, extensions</PackageTags>
1818
</PropertyGroup>
1919

20+
<ItemGroup>
21+
<PackageReference Include="Open.Threading" Version="1.0.1" />
22+
</ItemGroup>
23+
2024
</Project>

0 commit comments

Comments
 (0)