// Copyright Epic Games, Inc. All Rights Reserved. using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace EpicGames.Horde.Streams { /// /// Collection of stream documents /// public interface IStreamCollection { /// /// Gets a stream by ID /// /// The stream identifier /// Cancellation token for the operation /// The stream document Task GetAsync(StreamId id, CancellationToken cancellationToken = default); /// /// Gets a stream by ID /// /// The stream identifiers /// Cancellation token for the operation /// The stream document Task> FindAsync(IReadOnlyList? ids = null, CancellationToken cancellationToken = default); } }