Skip to content

Commit

Permalink
add Task.DontAwait() extension
Browse files Browse the repository at this point in the history
  • Loading branch information
tibel committed Oct 3, 2014
1 parent 047c292 commit dc6d17e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/Weakly.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>Weakly</id>
<title>Weakly</title>
<version>2.2.0</version>
<version>2.2.1</version>
<authors>Thomas Ibel</authors>
<description>Weakly is a collection of some useful weak-reference types available as portable class library for net45+win8+wp8+wpa81.</description>
<language>en-US</language>
Expand Down
5 changes: 3 additions & 2 deletions samples/Demo.Win81/Demo.Win81.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
<DefaultLanguage>en-US</DefaultLanguage>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{BC8A1FFA-BEE3-4634-8014-F334798102B3};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<PackageCertificateKeyFile>Demo.Win8_TemporaryKey.pfx</PackageCertificateKeyFile>
<PackageCertificateKeyFile>Demo.Win81_TemporaryKey.pfx</PackageCertificateKeyFile>
<TargetPlatformVersion>8.1</TargetPlatformVersion>
<MinimumVisualStudioVersion>12</MinimumVisualStudioVersion>
<TargetFrameworkVersion />
<PackageCertificateThumbprint>4A9837EC0B45BE9D716CD54AE44F8AEF51E489C8</PackageCertificateThumbprint>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down Expand Up @@ -123,7 +124,7 @@
<AppxManifest Include="Package.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
<None Include="Demo.Win8_TemporaryKey.pfx" />
<None Include="Demo.Win81_TemporaryKey.pfx" />
</ItemGroup>
<ItemGroup>
<Content Include="Assets\Logo.png" />
Expand Down
Binary file added samples/Demo.Win81/Demo.Win81_TemporaryKey.pfx
Binary file not shown.
Binary file removed samples/Demo.Win81/Demo.Win8_TemporaryKey.pfx
Binary file not shown.
2 changes: 1 addition & 1 deletion src/GlobalAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
[assembly: CLSCompliant(true)]

[assembly: AssemblyVersion("2.2.0.0")]
[assembly: AssemblyFileVersion("2.2.0.0")]
[assembly: AssemblyFileVersion("2.2.1.0")]
6 changes: 6 additions & 0 deletions src/Weakly/Tasks/TaskHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,5 +165,11 @@ public static Task<T> ObserveException<T>(this Task<T> task)
}

#endregion

/// <summary>
/// Don't await the supplied task. Use this inside async methods to avoid compiler warnings.
/// </summary>
/// <param name="task">The Task to be monitored.</param>
public static void DontAwait(this Task task) { }
}
}

0 comments on commit dc6d17e

Please sign in to comment.