feat: promisify contentTracing recording APIs (#16584)
* feat: promisify contentTracing.startRecording() * feat: promisify contentTracing.stopRecording() * test: convert specs for new promisified apis * chore: deprecate and ensure legacy tests work
This commit is contained in:
parent
cbb5164cc8
commit
ba57e1d991
5 changed files with 152 additions and 20 deletions
|
@ -3,5 +3,7 @@ const { deprecate } = require('electron')
|
|||
const contentTracing = process.atomBinding('content_tracing')
|
||||
|
||||
contentTracing.getCategories = deprecate.promisify(contentTracing.getCategories)
|
||||
contentTracing.startRecording = deprecate.promisify(contentTracing.startRecording)
|
||||
contentTracing.stopRecording = deprecate.promisify(contentTracing.stopRecording)
|
||||
|
||||
module.exports = contentTracing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue