Hi, I just installed this library and I wonder why all the methods of Star return Promise.
It all comes from
public async getGeocentricEquatorialSphericalJ2000Coordinates(): Promise<EquatorialSphericalCoordinates> {
return Promise.resolve(this.equatorialCoords);
}
But why is this returning a Promise, since it does not do any IO or blocking operation? It seems like an unnecessary complication of the API.
Hi, I just installed this library and I wonder why all the methods of Star return Promise.
It all comes from
But why is this returning a Promise, since it does not do any IO or blocking operation? It seems like an unnecessary complication of the API.