Disposable Event for .NET NuGet Package

A smart and simple way to work with limited-lifetime events in .NET
This package introduce the concept of Disposable events - when you subscribe to such event you will obtain IDisposable token, and when you call Dispose on it, the event subscription will be automatically removed.

This will work regardless of action used to subscribe (such as lambdas, or other hard-to-unregister types).




Got any Disposable Event for .NET Question?





Info

Version: 1.1.0
Author(s): Piotr Kosek
Last Update: Wednesday, January 6, 2021
.NET Fiddle: Create the first Fiddle
NuGet Url: https://www.nuget.org/packages/Kosek.DisposableEvent


Install
Install-Package Kosek.DisposableEvent
dotnet add package Kosek.DisposableEvent
paket add Kosek.DisposableEvent
Kosek.DisposableEvent Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

avg-downloads-per-day

0

days-since-last-release

1417