-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: deferred client initialization (#370)
This PR includes changes from googleapis/gapic-generator-typescript#317 that will move the asynchronous initialization and authentication from the client constructor to an `initialize()` method. This method will be automatically called when the first RPC call is performed. The client library usage has not changed, there is no need to update any code. If you want to make sure the client is authenticated _before_ the first RPC call, you can do ```js await client.initialize(); ``` manually before calling any client method.
- Loading branch information
1 parent
ef94c57
commit d37078b
Showing
7 changed files
with
735 additions
and
334 deletions.
There are no files selected for viewing
229 changes: 138 additions & 91 deletions
229
packages/google-cloud-tasks/src/v2/cloud_tasks_client.ts
Large diffs are not rendered by default.
Oops, something went wrong.
347 changes: 199 additions & 148 deletions
347
packages/google-cloud-tasks/src/v2beta2/cloud_tasks_client.ts
Large diffs are not rendered by default.
Oops, something went wrong.
229 changes: 138 additions & 91 deletions
229
packages/google-cloud-tasks/src/v2beta3/cloud_tasks_client.ts
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.