async

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

Creates the Texture 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 Texture.isCreationComplete. Needs Engine.isAsynchronousModeEnabled.