loadServiceOrNull

inline fun <T : Any> loadServiceOrNull(): T?(source)

Deprecated

Use loadServicesAsSequence().firstOrNull() instead

Replace with

loadServicesAsSequence().firstOrNull()

Loads single implementation of the service T using ServiceLoader.load returns null if there are no any implementations.

Report a problem

See also