You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -175,6 +196,9 @@ function createAssetApi (http) {
175
196
* @memberof Asset
176
197
* @func processForLocale
177
198
* @param {string} locale - Locale which processing should be triggered for
199
+
* @param {object} options - Additional options for processing
200
+
* @prop {number} options.processingCheckWait - Time in milliseconds to wait before checking again if the asset has been processed (default: 500ms)
201
+
* @prop {number} options.processingCheckRetries - Maximum amount of times to check if the asset has been processed (default: 5)
178
202
* @return {Promise<Asset>} Object returned from the server with updated metadata.
179
203
* @throws {AssetProcessingTimeout} If the asset takes too long to process. If this happens, retrieve the asset again, and if the url property is available, then processing has succeeded. If not, your file might be damaged.
180
204
* @example
@@ -187,6 +211,9 @@ function createAssetApi (http) {
187
211
* Triggers asset processing after an upload, for the files uploaded to all locales of an asset.
188
212
* @memberof Asset
189
213
* @func processForAllLocales
214
+
* @param {object} options - Additional options for processing
215
+
* @prop {number} options.processingCheckWait - Time in milliseconds to wait before checking again if the asset has been processed (default: 500ms)
216
+
* @prop {number} options.processingCheckRetries - Maximum amount of times to check if the asset has been processed (default: 5)
190
217
* @return {Promise<Asset>} Object returned from the server with updated metadata.
191
218
* @throws {AssetProcessingTimeout} If the asset takes too long to process. If this happens, retrieve the asset again, and if the url property is available, then processing has succeeded. If not, your file might be damaged.
0 commit comments