Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for using top-down during main save
- Loading branch information
Showing
6 changed files
with
134 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
namespace Art.M3U; | ||
|
||
/// <summary> | ||
/// Represents an extra operation that should be used when no new segments are immediately available in <see cref="M3UDownloaderContextProcessor"/>. | ||
/// </summary> | ||
/// <remarks> | ||
/// The <see cref="TickAsync"/> method can be invoked multiple times, and | ||
/// is intended to be used when no new segments are immediately available. | ||
/// </remarks> | ||
public interface IExtraSaverOperation | ||
{ | ||
/// <summary> | ||
/// Resets this operation. | ||
/// </summary> | ||
void Reset(); | ||
|
||
/// <summary> | ||
/// Executes operation step. | ||
/// </summary> | ||
/// <param name="m3">Existing M3U file.</param> | ||
/// <param name="cancellationToken">Cancellation token.</param> | ||
/// <returns>Task that returns false if this operation is no longer useful.</returns> | ||
Task<bool> TickAsync(M3UFile m3, CancellationToken cancellationToken = default); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters