# Promise WebAudioContext.close()
with Promise style call: Not supported
Mini Program plugin: Not supported
Close Web Audio Context
# Return value
# Promise
# Note
Synchronously closes the corresponding WebAudio context. The resource in the current context is immediately released after the close,Do not access the state property again after the close.
const audioCtx = wx.createWebAudioContext()
audioCtx.close().then(() => {
console.log(audioCtx.state) // bad Case: State should not be accessed after close
})