Skip to content

Commit 1901113

Browse files
committed
Don't need when.Promise anymore
1 parent f626435 commit 1901113

File tree

69 files changed

+143
-143
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+143
-143
lines changed

Source/Core/ApproximateTerrainHeights.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const ApproximateTerrainHeights = {};
3636

3737
/**
3838
* Initializes the minimum and maximum terrain heights
39-
* @return {when.Promise.<void>}
39+
* @return {Promise.<void>}
4040
*/
4141
ApproximateTerrainHeights.initialize = function () {
4242
let initPromise = ApproximateTerrainHeights._initPromise;

Source/Core/ArcGISTiledElevationTerrainProvider.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ Object.defineProperties(ArcGISTiledElevationTerrainProvider.prototype, {
262262
/**
263263
* Gets a promise that resolves to true when the provider is ready for use.
264264
* @memberof ArcGISTiledElevationTerrainProvider.prototype
265-
* @type {when.Promise.<Boolean>}
265+
* @type {Promise.<Boolean>}
266266
* @readonly
267267
*/
268268
readyPromise: {
@@ -330,7 +330,7 @@ Object.defineProperties(ArcGISTiledElevationTerrainProvider.prototype, {
330330
* @param {Number} y The Y coordinate of the tile for which to request geometry.
331331
* @param {Number} level The level of the tile for which to request geometry.
332332
* @param {Request} [request] The request object. Intended for internal use only.
333-
* @returns {when.Promise.<TerrainData>|undefined} A promise for the requested geometry. If this method
333+
* @returns {Promise.<TerrainData>|undefined} A promise for the requested geometry. If this method
334334
* returns undefined instead of a promise, it is an indication that too many requests are already
335335
* pending and the request will be retried later.
336336
*/

Source/Core/BingMapsGeocoderService.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Object.defineProperties(BingMapsGeocoderService.prototype, {
7171
* @function
7272
*
7373
* @param {String} query The query to be sent to the geocoder service
74-
* @returns {when.Promise.<GeocoderService.Result[]>}
74+
* @returns {Promise.<GeocoderService.Result[]>}
7575
*/
7676
BingMapsGeocoderService.prototype.geocode = function (query) {
7777
//>>includeStart('debug', pragmas.debug);

Source/Core/CartographicGeocoderService.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function CartographicGeocoderService() {}
1414
* @function
1515
*
1616
* @param {String} query The query to be sent to the geocoder service
17-
* @returns {when.Promise.<GeocoderService.Result[]>}
17+
* @returns {Promise.<GeocoderService.Result[]>}
1818
*/
1919
CartographicGeocoderService.prototype.geocode = function (query) {
2020
//>>includeStart('debug', pragmas.debug);

Source/Core/CesiumTerrainProvider.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ function createQuantizedMeshTerrainData(provider, buffer, level, x, y, layer) {
800800
* @param {Number} level The level of the tile for which to request geometry.
801801
* @param {Request} [request] The request object. Intended for internal use only.
802802
*
803-
* @returns {when.Promise.<TerrainData>|undefined} A promise for the requested geometry. If this method
803+
* @returns {Promise.<TerrainData>|undefined} A promise for the requested geometry. If this method
804804
* returns undefined instead of a promise, it is an indication that too many requests are already
805805
* pending and the request will be retried later.
806806
*
@@ -1003,7 +1003,7 @@ Object.defineProperties(CesiumTerrainProvider.prototype, {
10031003
/**
10041004
* Gets a promise that resolves to true when the provider is ready for use.
10051005
* @memberof CesiumTerrainProvider.prototype
1006-
* @type {when.Promise.<Boolean>}
1006+
* @type {Promise.<Boolean>}
10071007
* @readonly
10081008
*/
10091009
readyPromise: {
@@ -1206,7 +1206,7 @@ CesiumTerrainProvider.prototype.getTileDataAvailable = function (x, y, level) {
12061206
* @param {Number} x The X coordinate of the tile for which to request geometry.
12071207
* @param {Number} y The Y coordinate of the tile for which to request geometry.
12081208
* @param {Number} level The level of the tile for which to request geometry.
1209-
* @returns {when.Promise.<void>|undefined} Undefined if nothing need to be loaded or a Promise that resolves when all required tiles are loaded
1209+
* @returns {Promise.<void>|undefined} Undefined if nothing need to be loaded or a Promise that resolves when all required tiles are loaded
12101210
*/
12111211
CesiumTerrainProvider.prototype.loadTileDataAvailability = function (
12121212
x,

Source/Core/CustomHeightmapTerrainProvider.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ CustomHeightmapTerrainProvider.prototype.getTileDataAvailable = function (
287287
* @param {Number} x The X coordinate of the tile for which to request geometry.
288288
* @param {Number} y The Y coordinate of the tile for which to request geometry.
289289
* @param {Number} level The level of the tile for which to request geometry.
290-
* @returns {when.Promise.<void>|undefined} Undefined if nothing need to be loaded or a Promise that resolves when all required tiles are loaded
290+
* @returns {Promise.<void>|undefined} Undefined if nothing need to be loaded or a Promise that resolves when all required tiles are loaded
291291
*/
292292
CustomHeightmapTerrainProvider.prototype.loadTileDataAvailability = function (
293293
x,

Source/Core/EarthOrientationParameters.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ EarthOrientationParameters.NONE = Object.freeze({
132132
* Gets a promise that, when resolved, indicates that the EOP data has been loaded and is
133133
* ready to use.
134134
*
135-
* @returns {when.Promise.<void>} The promise.
135+
* @returns {Promise.<void>} The promise.
136136
*/
137137
EarthOrientationParameters.prototype.getPromiseToLoad = function () {
138138
return Promise.resolve(this._downloadPromise);

Source/Core/EllipsoidTerrainProvider.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Object.defineProperties(EllipsoidTerrainProvider.prototype, {
101101
/**
102102
* Gets a promise that resolves to true when the provider is ready for use.
103103
* @memberof EllipsoidTerrainProvider.prototype
104-
* @type {when.Promise.<Boolean>}
104+
* @type {Promise.<Boolean>}
105105
* @readonly
106106
*/
107107
readyPromise: {
@@ -163,7 +163,7 @@ Object.defineProperties(EllipsoidTerrainProvider.prototype, {
163163
* @param {Number} level The level of the tile for which to request geometry.
164164
* @param {Request} [request] The request object. Intended for internal use only.
165165
*
166-
* @returns {when.Promise.<TerrainData>|undefined} A promise for the requested geometry. If this method
166+
* @returns {Promise.<TerrainData>|undefined} A promise for the requested geometry. If this method
167167
* returns undefined instead of a promise, it is an indication that too many requests are already
168168
* pending and the request will be retried later.
169169
*/

Source/Core/GeocoderService.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function GeocoderService() {}
2323
*
2424
* @param {String} query The query to be sent to the geocoder service
2525
* @param {GeocodeType} [type=GeocodeType.SEARCH] The type of geocode to perform.
26-
* @returns {when.Promise.<GeocoderService.Result[]>}
26+
* @returns {Promise.<GeocoderService.Result[]>}
2727
*/
2828
GeocoderService.prototype.geocode = DeveloperError.throwInstantiationError;
2929
export default GeocoderService;

Source/Core/GoogleEarthEnterpriseMetadata.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Object.defineProperties(GoogleEarthEnterpriseMetadata.prototype, {
170170
/**
171171
* Gets a promise that resolves to true when the metadata is ready for use.
172172
* @memberof GoogleEarthEnterpriseMetadata.prototype
173-
* @type {when.Promise.<Boolean>}
173+
* @type {Promise.<Boolean>}
174174
* @readonly
175175
*/
176176
readyPromise: {
@@ -378,7 +378,7 @@ GoogleEarthEnterpriseMetadata.prototype.getQuadTreePacket = function (
378378
* @param {Number} level The tile level.
379379
* @param {Request} [request] The request object. Intended for internal use only.
380380
*
381-
* @returns {when.Promise.<GoogleEarthEnterpriseTileInformation>} A promise that resolves to the tile info for the requested quad key
381+
* @returns {Promise.<GoogleEarthEnterpriseTileInformation>} A promise that resolves to the tile info for the requested quad key
382382
*
383383
* @private
384384
*/

Source/Core/GoogleEarthEnterpriseTerrainData.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ const rectangleScratch = new Rectangle();
140140
* @param {Number} [options.exaggeration=1.0] The scale used to exaggerate the terrain.
141141
* @param {Number} [options.exaggerationRelativeHeight=0.0] The height from which terrain is exaggerated.
142142
* @param {Boolean} [options.throttle=true] If true, indicates that this operation will need to be retried if too many asynchronous mesh creations are already in progress.
143-
* @returns {when.Promise.<TerrainMesh>|undefined} A promise for the terrain mesh, or undefined if too many
143+
* @returns {Promise.<TerrainMesh>|undefined} A promise for the terrain mesh, or undefined if too many
144144
* asynchronous mesh creations are already in progress and the operation should
145145
* be retried later.
146146
*/
@@ -282,7 +282,7 @@ const upsampleTaskProcessor = new TaskProcessor(
282282
* @param {Number} descendantX The X coordinate within the tiling scheme of the descendant tile for which we are upsampling.
283283
* @param {Number} descendantY The Y coordinate within the tiling scheme of the descendant tile for which we are upsampling.
284284
* @param {Number} descendantLevel The level within the tiling scheme of the descendant tile for which we are upsampling.
285-
* @returns {when.Promise.<HeightmapTerrainData>|undefined} A promise for upsampled heightmap terrain data for the descendant tile,
285+
* @returns {Promise.<HeightmapTerrainData>|undefined} A promise for upsampled heightmap terrain data for the descendant tile,
286286
* or undefined if too many asynchronous upsample operations are in progress and the request has been
287287
* deferred.
288288
*/

Source/Core/GoogleEarthEnterpriseTerrainProvider.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ Object.defineProperties(GoogleEarthEnterpriseTerrainProvider.prototype, {
250250
/**
251251
* Gets a promise that resolves to true when the provider is ready for use.
252252
* @memberof GoogleEarthEnterpriseTerrainProvider.prototype
253-
* @type {when.Promise.<Boolean>}
253+
* @type {Promise.<Boolean>}
254254
* @readonly
255255
*/
256256
readyPromise: {
@@ -346,7 +346,7 @@ function computeChildMask(quadKey, info, metadata) {
346346
* @param {Number} y The Y coordinate of the tile for which to request geometry.
347347
* @param {Number} level The level of the tile for which to request geometry.
348348
* @param {Request} [request] The request object. Intended for internal use only.
349-
* @returns {when.Promise.<TerrainData>|undefined} A promise for the requested geometry. If this method
349+
* @returns {Promise.<TerrainData>|undefined} A promise for the requested geometry. If this method
350350
* returns undefined instead of a promise, it is an indication that too many requests are already
351351
* pending and the request will be retried later.
352352
*

Source/Core/HeightmapTerrainData.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ const createMeshTaskProcessorThrottle = new TaskProcessor(
203203
* @param {Number} [options.exaggeration=1.0] The scale used to exaggerate the terrain.
204204
* @param {Number} [options.exaggerationRelativeHeight=0.0] The height relative to which terrain is exaggerated.
205205
* @param {Boolean} [options.throttle=true] If true, indicates that this operation will need to be retried if too many asynchronous mesh creations are already in progress.
206-
* @returns {when.Promise.<TerrainMesh>|undefined} A promise for the terrain mesh, or undefined if too many
206+
* @returns {Promise.<TerrainMesh>|undefined} A promise for the terrain mesh, or undefined if too many
207207
* asynchronous mesh creations are already in progress and the operation should
208208
* be retried later.
209209
*/

Source/Core/Iau2006XysData.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function getDaysSinceEpoch(xys, dayTT, secondTT) {
9494
* the Terrestrial Time (TT) time standard.
9595
* @param {Number} stopSecondTT The seconds past noon of the end of the interval to preload, expressed in
9696
* the Terrestrial Time (TT) time standard.
97-
* @returns {when.Promise.<void>} A promise that, when resolved, indicates that the requested interval has been
97+
* @returns {Promise.<void>} A promise that, when resolved, indicates that the requested interval has been
9898
* preloaded.
9999
*/
100100
Iau2006XysData.prototype.preload = function (

Source/Core/IonGeocoderService.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function IonGeocoderService(options) {
5656
*
5757
* @param {String} query The query to be sent to the geocoder service
5858
* @param {GeocodeType} [type=GeocodeType.SEARCH] The type of geocode to perform.
59-
* @returns {when.Promise.<GeocoderService.Result[]>}
59+
* @returns {Promise.<GeocoderService.Result[]>}
6060
*/
6161
IonGeocoderService.prototype.geocode = function (query, geocodeType) {
6262
return this._pelias.geocode(query, geocodeType);

Source/Core/IonResource.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ if (defined(Object.create)) {
8484
* @param {Object} [options] An object with the following properties:
8585
* @param {String} [options.accessToken=Ion.defaultAccessToken] The access token to use.
8686
* @param {String|Resource} [options.server=Ion.defaultServer] The resource to the Cesium ion API server.
87-
* @returns {when.Promise.<IonResource>} A Promise to am instance representing the Cesium ion Asset.
87+
* @returns {Promise.<IonResource>} A Promise to am instance representing the Cesium ion Asset.
8888
*
8989
* @example
9090
* //Load a Cesium3DTileset with asset ID of 124624234

Source/Core/OpenCageGeocoderService.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Object.defineProperties(OpenCageGeocoderService.prototype, {
7979
* @function
8080
*
8181
* @param {String} query The query to be sent to the geocoder service
82-
* @returns {when.Promise.<GeocoderService.Result[]>}
82+
* @returns {Promise.<GeocoderService.Result[]>}
8383
*/
8484
OpenCageGeocoderService.prototype.geocode = function (query) {
8585
//>>includeStart('debug', pragmas.debug);

Source/Core/PeliasGeocoderService.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Object.defineProperties(PeliasGeocoderService.prototype, {
5151
*
5252
* @param {String} query The query to be sent to the geocoder service
5353
* @param {GeocodeType} [type=GeocodeType.SEARCH] The type of geocode to perform.
54-
* @returns {when.Promise.<GeocoderService.Result[]>}
54+
* @returns {Promise.<GeocoderService.Result[]>}
5555
*/
5656
PeliasGeocoderService.prototype.geocode = function (query, type) {
5757
//>>includeStart('debug', pragmas.debug);

Source/Core/QuantizedMeshTerrainData.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ const createMeshTaskProcessorThrottle = new TaskProcessor(
283283
* @param {Number} [options.exaggeration=1.0] The scale used to exaggerate the terrain.
284284
* @param {Number} [options.exaggerationRelativeHeight=0.0] The height relative to which terrain is exaggerated.
285285
* @param {Boolean} [options.throttle=true] If true, indicates that this operation will need to be retried if too many asynchronous mesh creations are already in progress.
286-
* @returns {when.Promise.<TerrainMesh>|undefined} A promise for the terrain mesh, or undefined if too many
286+
* @returns {Promise.<TerrainMesh>|undefined} A promise for the terrain mesh, or undefined if too many
287287
* asynchronous mesh creations are already in progress and the operation should
288288
* be retried later.
289289
*/
@@ -424,7 +424,7 @@ const upsampleTaskProcessor = new TaskProcessor(
424424
* @param {Number} descendantX The X coordinate within the tiling scheme of the descendant tile for which we are upsampling.
425425
* @param {Number} descendantY The Y coordinate within the tiling scheme of the descendant tile for which we are upsampling.
426426
* @param {Number} descendantLevel The level within the tiling scheme of the descendant tile for which we are upsampling.
427-
* @returns {when.Promise.<QuantizedMeshTerrainData>|undefined} A promise for upsampled heightmap terrain data for the descendant tile,
427+
* @returns {Promise.<QuantizedMeshTerrainData>|undefined} A promise for upsampled heightmap terrain data for the descendant tile,
428428
* or undefined if too many asynchronous upsample operations are in progress and the request has been
429429
* deferred.
430430
*/

Source/Core/RequestScheduler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ RequestScheduler.getServerKey = function (url) {
376376
*
377377
* @param {Request} request The request object.
378378
*
379-
* @returns {when.Promise|undefined} A Promise for the requested data, or undefined if this request does not have high enough priority to be issued.
379+
* @returns {Promise|undefined} A Promise for the requested data, or undefined if this request does not have high enough priority to be issued.
380380
*
381381
* @private
382382
*/

0 commit comments

Comments
 (0)