mirror of
https://github.com/ppy/osu
synced 2025-01-11 16:49:39 +00:00
Add xmldoc explaining thread safety limitations of IModelManager
"events"
This commit is contained in:
parent
6da977f99a
commit
d9b5f235d8
@ -13,8 +13,16 @@ namespace osu.Game.Database
|
|||||||
public interface IModelManager<TModel>
|
public interface IModelManager<TModel>
|
||||||
where TModel : class
|
where TModel : class
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// A bindable which contains a weak reference to the last item that was updated.
|
||||||
|
/// This is not thread-safe and should be scheduled locally if consumed from a drawable component.
|
||||||
|
/// </summary>
|
||||||
IBindable<WeakReference<TModel>> ItemUpdated { get; }
|
IBindable<WeakReference<TModel>> ItemUpdated { get; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A bindable which contains a weak reference to the last item that was removed.
|
||||||
|
/// This is not thread-safe and should be scheduled locally if consumed from a drawable component.
|
||||||
|
/// </summary>
|
||||||
IBindable<WeakReference<TModel>> ItemRemoved { get; }
|
IBindable<WeakReference<TModel>> ItemRemoved { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user