/var/www/greso.tech/server/nsm/node_modules/@google-cloud/firestore/build/src
NameSizeModeActions
v1/-0755rm
v1beta1/-0755rm
backoff.d.ts55470644editdlrm
backoff.js76500644editdlrm
bulk-writer.d.ts192300644editdlrm
bulk-writer.js361120644editdlrm
bundle.d.ts8350644editdlrm
bundle.js84270644editdlrm
collection-group.d.ts36020644editdlrm
collection-group.js45530644editdlrm
convert.d.ts27760644editdlrm
convert.js71680644editdlrm
document-change.d.ts50330644editdlrm
document-change.js52840644editdlrm
document-reader.d.ts18420644editdlrm
document-reader.js53940644editdlrm
document.d.ts181490644editdlrm
document.js304040644editdlrm
field-value.d.ts85980644editdlrm
field-value.js138840644editdlrm
filter.d.ts68320644editdlrm
filter.js69730644editdlrm
geo-point.d.ts26440644editdlrm
geo-point.js32170644editdlrm
index.d.ts382290644editdlrm
index.js634430644editdlrm
logger.d.ts13100644editdlrm
logger.js21120644editdlrm
order.d.ts10960644editdlrm
order.js75250644editdlrm
path.d.ts121180644editdlrm
path.js189950644editdlrm
pool.d.ts44320644editdlrm
pool.js101160644editdlrm
query-partition.d.ts40110644editdlrm
query-partition.js57610644editdlrm
rate-limiter.d.ts30150644editdlrm
rate-limiter.js58500644editdlrm
recursive-delete.d.ts57140644editdlrm
recursive-delete.js100400644editdlrm
reference.d.ts530960644editdlrm
reference.js1032210644editdlrm
serializer.d.ts29420644editdlrm
serializer.js128170644editdlrm
status-code.d.ts11210644editdlrm
status-code.js7120644editdlrm
timestamp.d.ts69870644editdlrm
timestamp.js96970644editdlrm
transaction.d.ts100980644editdlrm
transaction.js191390644editdlrm
types.d.ts39920644editdlrm
types.js13870644editdlrm
util.d.ts40660644editdlrm
util.js73730644editdlrm
validate.d.ts65270644editdlrm
validate.js123140644editdlrm
watch.d.ts97380644editdlrm
watch.js249880644editdlrm
write-batch.d.ts105210644editdlrm
write-batch.js272330644editdlrm
Edit: /var/www/greso.tech/server/nsm/node_modules/@google-cloud/firestore/build/src/pool.d.ts (4432B)
/*! * Copyright 2018 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ export declare const CLIENT_TERMINATED_ERROR_MSG = "The client has already been terminated"; /** * An auto-resizing pool that distributes concurrent operations over multiple * clients of type `T`. * * ClientPool is used within Firestore to manage a pool of GAPIC clients and * automatically initializes multiple clients if we issue more than 100 * concurrent operations. * * @private * @internal */ export declare class ClientPool { private readonly concurrentOperationLimit; private readonly maxIdleClients; private readonly clientFactory; private readonly clientDestructor; private grpcEnabled; /** * Stores each active clients and how many operations it has outstanding. */ private activeClients; /** * A set of clients that have seen RST_STREAM errors (see * https://github.com/googleapis/nodejs-firestore/issues/1023) and should * no longer be used. */ private failedClients; /** * Whether the Firestore instance has been terminated. Once terminated, the * ClientPool can longer schedule new operations. */ private terminated; /** * Deferred promise that is resolved when there are no active operations on * the client pool after terminate() has been called. */ private terminateDeferred; /** * @param concurrentOperationLimit The number of operations that each client * can handle. * @param maxIdleClients The maximum number of idle clients to keep before * garbage collecting. * @param clientFactory A factory function called as needed when new clients * are required. * @param clientDestructor A cleanup function that is called when a client is * disposed of. */ constructor(concurrentOperationLimit: number, maxIdleClients: number, clientFactory: (requiresGrpc: boolean) => T, clientDestructor?: (client: T) => Promise); /** * Returns an already existing client if it has less than the maximum number * of concurrent operations or initializes and returns a new client. * * @private * @internal */ private acquire; /** * Reduces the number of operations for the provided client, potentially * removing it from the pool of active clients. * @private * @internal */ private release; /** * Given the current operation counts, determines if the given client should * be garbage collected. * @private * @internal */ private shouldGarbageCollectClient; /** * The number of currently registered clients. * * @return Number of currently registered clients. * @private * @internal */ get size(): number; /** * The number of currently active operations. * * @return Number of currently active operations. * @private * @internal */ get opCount(): number; /** * The currently active clients. * * @return The currently active clients. * @private * @internal */ get _activeClients(): Map; /** * Runs the provided operation in this pool. This function may create an * additional client if all existing clients already operate at the concurrent * operation limit. * * @param requestTag A unique client-assigned identifier for this operation. * @param op A callback function that returns a Promise. The client T will * be returned to the pool when callback finishes. * @return A Promise that resolves with the result of `op`. * @private * @internal */ run(requestTag: string, requiresGrpc: boolean, op: (client: T) => Promise): Promise; terminate(): Promise; }