feat: promisify contentTracing.getCategories() (#16583)

* feat: promisify contentTracing.getCategories()

* deprecate contentTracing/getCategories
This commit is contained in:
Shelley Vohr 2019-01-30 12:39:55 -08:00 committed by GitHub
parent 9ed89ace97
commit 641b47f384
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 11 deletions

View file

@ -43,11 +43,18 @@ The `contentTracing` module has the following methods:
* `callback` Function
* `categories` String[]
Get a set of category groups. The category groups can change as new code paths
are reached.
Get a set of category groups. The category groups can change as new code paths are reached.
Once all child processes have acknowledged the `getCategories` request the `callback` is invoked with an array of category groups.
**[Deprecated Soon](promisification.md)**
### `contentTracing.getCategories()`
Returns `Promise<String[]>` - resolves with an array of category groups once all child processes have acknowledged the `getCategories` request
Get a set of category groups. The category groups can change as new code paths are reached.
Once all child processes have acknowledged the `getCategories` request the
`callback` is invoked with an array of category groups.
### `contentTracing.startRecording(options, callback)`