IPromise and IPromise are different types. It’s as different as ICat and IDog.
I have no idea what these interfaces are though or how they’re defined. No idea about Proyecto26 either, never heard of it but it’s not my thing though. Maybe it has docs describing how to handle this?
Probably would be useful to provide links and not assume devs know what this is or where/how those interfaces as defined.
I thought their RestClient is very popular. It is a Promise based rest client: https://github.com/proyecto26/RestClient
They do not provide an example on how to perform many requests. I thought Promises are promises and there is some universal mechanism for Promise.All typed IPromise objects…
For a single request doing:
It might be but so are many things. My point was to provide links to the interfaces in question etc so someone can help you with the scripting question without having to know about the repo or specifics of that REST api and without having to download it etc.
In the end, these two are different and not compatible in any way. This is my point of asking about the interfaces in that repo.
public interface ICat
{
}
public interface ICat<T>
{
}
In the end, your question is about interfaces from what I can see.
Ok, to be super-precise, this RestClient library uses RSG Promise library which implements promises (https://github.com/Real-Serious-Games/C-Sharp-Promise). So my question is:
Is there any promise mechanism in C#/Unity that allows to do a “Promise.All” mechanism for a list of generic promises.
I cannot answer that so you’ll have to wait for someone who knows about that stuff then. It seems your question has gone from a question about specific interfaces to asking about some general solution that Unity provides for a similar mechanism.
In the end, I was trying to answer a question about interfaces, I only needed to see where they were defined in the specific repo.