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.

MDN Reference