then

abstract fun then(onFulfilled: (UploadTaskSnapshot) -> Unit?, onRejected: (StorageError) -> Unit?): Promise<JsAny?>(source)