初始化 monorepo: Go后端(7微服务) + Unity客户端(9模块) + 启动器 HTML5原型: Three.js 3D体素世界, Perlin噪声地形, 原版材质, 22种方块 Minecraft创造模式背包: 双栏布局, 拖拽移动物品, 方向性元件引脚 AI助搭策划文档 + 客户端/服务端骨架 + Docker Compose + CI
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace PCL.Core.IO.Download;
|
||||
|
||||
/// <summary>
|
||||
/// 下载写入器。
|
||||
/// </summary>
|
||||
public interface IDlWriter
|
||||
{
|
||||
/// <summary>
|
||||
/// 是否支持并行写入,即是否支持多次调用 <see cref="CreateStreamAsync"/>。
|
||||
/// </summary>
|
||||
public bool IsSupportParallel { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建写入流。
|
||||
/// </summary>
|
||||
/// <returns>写入流</returns>
|
||||
public Task<Stream> CreateStreamAsync();
|
||||
|
||||
/// <summary>
|
||||
/// 停止写入并释放资源。
|
||||
/// </summary>
|
||||
public Task StopAsync();
|
||||
|
||||
/// <summary>
|
||||
/// 完成写入,用于执行某些并行操作的收尾工作 (例如合并文件)。
|
||||
/// </summary>
|
||||
public Task FinishAsync();
|
||||
}
|
||||
Reference in New Issue
Block a user