This commit is contained in:
runette committed 2024-04-22 15:52:51 +01:00
commit e0afef912e
1285 files changed
+83219

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
//-----------------------------------------------------------------------
// <copyright file="IObserver.cs" company="Mapbox">
// Copyright (c) 2016 Mapbox. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace Mapbox.Utils
{
/// <summary>
/// An observer interface, similar to .NET 4.0 own IObserver.
/// </summary>
/// <typeparam name="T">
/// The data being observed.
/// </typeparam>
public interface IObserver<T>
{
/// <summary> The <see cref="T:Observable" /> has updated the data. </summary>
/// <param name="next"> The data that has changed. </param>
void OnNext(T next);
}
}