load
inline fun <T> load(errorHandler: (Throwable) -> T & Any = { throw it }, mapper: (ByteArray) -> T & Any): T
load the given resource synchronously, mapping to definitely non-nullable type T. you may then perform any operations on the result.
In case of failure, the errorHandler will be called with the exception.
Since
1.1.6
See also
load the given resource synchronously into a new byte array. you may then perform any operations on the result.
In case of failure, the errorHandler will be called with the exception.
Since
1.1.6