Replies: 2 comments 6 replies
-
@JesseTG Hello! Can you please provide more info on how you view this? As I understand you are talking about Right now my only thoughs are something like this: interface IFileStorage {
//sync API + utility methods
}
interface IAsyncFileStorage : IFileStorage {
//addintional async API
}
class FileStorage : IAsyncFileStorage {
// both async and sync implementation
} The same for |
Beta Was this translation helpful? Give feedback.
-
No, you understand me correctly. I don't have a specific use case right now, since I happen to almost exclusively use asynchronous storage APIs in my project, but I'm trying to think a step ahead. Maybe just keep this idea in your back pocket? Honestly, if you had discussions enabled I'd have mentioned this there instead of opening a ticket. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Some storage backends only support synchronous APIs. Some only support asynchronous APIs. Would it be possible to divide interfaces that have methods for both into synchronous and asynchronous versions?
Beta Was this translation helpful? Give feedback.
All reactions