Skip to content

Commit 7938466

Browse files
committed
TaskExtension added
1 parent eb8ce5b commit 7938466

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System.Runtime.CompilerServices;
2+
using System.Threading.Tasks;
3+
4+
namespace KY.Core.Extension;
5+
6+
public static class TaskExtension
7+
{
8+
/// <summary>
9+
/// This method does nothing. It only suppresses warning CS4014
10+
/// </summary>
11+
/// <example>[CS4014] Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call.</example>
12+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
13+
public static void FireAndForget(this Task _) { }
14+
}

Core.Common.Standard/KY.Core.Common.Standard.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<RootNamespace>KY.Core</RootNamespace>
66
<AssemblyName>KY.Core.Common</AssemblyName>
7-
<Version>4.24.2</Version>
7+
<Version>4.25.0</Version>
88
<Authors>KY-Programming</Authors>
99
<Company>KY-Programmingp</Company>
1010
<Product>KY.Core</Product>
11-
<Copyright>2021 - KY-Programming</Copyright>
11+
<Copyright>2022 - KY-Programming</Copyright>
1212
<Description>KY.Core.Common for .net Standard
1313
Contains Dependency Injection, Module Loader and some helper classes</Description>
1414
<PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression>

0 commit comments

Comments
 (0)