using System.Threading; using System.Threading.Tasks; namespace FlowScope.Resources { public interface IResourceService { Task> LoadAsync( string key, CancellationToken cancellationToken) where T : class; IResourceGroup CreateGroup(); } public interface ICompletedResourceService { bool TryLoadCompleted(string key, out IResourceHandle handle) where T : class; } }