loadAsyncDirect

fun loadAsyncDirect(errorHandler: (Throwable) -> Unit = { throw it }, consumer: (ByteBuffer) -> Unit)

load the given resource asynchronously into a new direct byte buffer, calling the consumer with the result on the main thread.

In case of failure, the errorHandler will be called with the exception.

Since

1.1.6

See also