wait 1.0.0

dotnet add package wait --version 1.0.0                
NuGet\Install-Package wait -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="wait" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add wait --version 1.0.0                
#r "nuget: wait, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install wait as a Cake Addin
#addin nuget:?package=wait&version=1.0.0

// Install wait as a Cake Tool
#tool nuget:?package=wait&version=1.0.0                

wait

An obsessively simple and performant library for protecting critical sections.

NuGet

Let's look at some examples! Wait can be used using Wait.On() or Wait.GetWaiter().

Wait.On()
Wait.On("critical section", () =>
{
	// Critical Section
	// Only one "critical section" will run at a time
});

new Thread(() =>
{
	Wait.On("critical section", () =>
	{
		// Critical Section
		// Only one "critical section" will run at a time
	});
}).Start();
Wait.GetWaiter()
Waiter waiter = Wait.GetWaiter();

new Thread(() =>
{
	// Downloading
	waiter.Done();
}).Start();

waiter.WaitUntilDone();
// Download is done
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 2,034 11/8/2017