suspendAsync

fun suspendAsync(suspendTime: Double): Promise<Void?>(source)

The suspend() method of the OfflineAudioContext interface schedules a suspension of the time progression in the audio context at the specified time and returns a promise. This is generally useful at the time of manipulating the audio graph synchronously on OfflineAudioContext.

MDN Reference