add

abstract suspend fun add(uuid: UUID, service: LocalService.DSL.Primary.() -> Unit): LocalService?

Attempts to add a LocalService at a given UUID and suspends until it has been added.

Return

the LocalService added or null if it could not be added

Parameters

uuid

the UUID of the LocalService to add

service

the LocalService.DSL.Primary to use to set up the LocalService