mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-16 07:12:18 +01:00
Flush to disk async where possible
This commit is contained in:
@@ -13,9 +13,4 @@ namespace MediaBrowser.Controller.Library
|
||||
/// <returns>System.String.</returns>
|
||||
string GetSavePath(BaseItem item);
|
||||
}
|
||||
|
||||
public interface IConfigurableProvider
|
||||
{
|
||||
bool IsEnabled { get; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#nullable disable
|
||||
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using MediaBrowser.Controller.Entities;
|
||||
|
||||
namespace MediaBrowser.Controller.Library
|
||||
@@ -29,6 +28,7 @@ namespace MediaBrowser.Controller.Library
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
/// <param name="cancellationToken">The cancellation token.</param>
|
||||
void Save(BaseItem item, CancellationToken cancellationToken);
|
||||
/// <returns>The task object representing the asynchronous operation.</returns>
|
||||
Task SaveAsync(BaseItem item, CancellationToken cancellationToken);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -156,7 +156,8 @@ namespace MediaBrowser.Controller.Providers
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
/// <param name="updateType">Type of the update.</param>
|
||||
void SaveMetadata(BaseItem item, ItemUpdateType updateType);
|
||||
/// <returns>The task object representing the asynchronous operation.</returns>
|
||||
Task SaveMetadataAsync(BaseItem item, ItemUpdateType updateType);
|
||||
|
||||
/// <summary>
|
||||
/// Saves the metadata.
|
||||
@@ -164,7 +165,8 @@ namespace MediaBrowser.Controller.Providers
|
||||
/// <param name="item">The item.</param>
|
||||
/// <param name="updateType">Type of the update.</param>
|
||||
/// <param name="savers">The metadata savers.</param>
|
||||
void SaveMetadata(BaseItem item, ItemUpdateType updateType, IEnumerable<string> savers);
|
||||
/// <returns>The task object representing the asynchronous operation.</returns>
|
||||
Task SaveMetadataAsync(BaseItem item, ItemUpdateType updateType, IEnumerable<string> savers);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the metadata options.
|
||||
|
||||
Reference in New Issue
Block a user