Module OBus_resolver

module OBus_resolver: sig .. end
Bus name resolving


This module implement bus names resolving and monitoring.

It is basically an abstraction for OBus_bus.get_owner and OBus_bus.name_owner_changed. You should prefer using it instead of implementing your own name monitoring because resolver are shared and obus internally use them, so this avoid extra messages.

Note that with a peer-to-peer connection, resolver will always act as if they is no owner.

val make : ?switch:Lwt_switch.t ->
OBus_connection.t -> OBus_name.bus -> OBus_name.bus React.signal Lwt.t
make ?switch bus name creates a resolver which will monitor the name name on bus. It returns a signal holding the current owner of the name. It holds "" when there is no owner.