async

fun async(callback: (VertexBuffer, AsyncCallStatus) -> Unit = { _, _ -> }): VertexBuffer.Builder

Creates the VertexBuffer asynchronously: callback runs once on the main thread when its memory is allocated (AsyncCallStatus.CANCELED if it never was). Until then, only async calls on it are safe; check VertexBuffer.isCreationComplete. Needs Engine.isAsynchronousModeEnabled.